ComputerScience Quiz 16

getpid() To get a process identifier of the current process
getppid() To get parent process identifier
nice() To bias the existing priority of a process
brk() To increase/decrease the data segment size of a process..


A dump of the database contents is also referred to as an _____________ dump.
a) Archival
b) Fuzzy
c) SQL
d) All of the mentioned
Answer: a
Explanation: We can archive the dumps and use them later to examine old states of the database.

________ dump, writes out SQL DDL statements and SQL insert statements to a file, which can then be reexecuted to re-create the database.
a) Archival
b) Fuzzy
c) SQL
d) All of the mentioned

Answer: c
Explanation: Such dumps are useful when migrating data to a different instance of the database, or to a different version of the database software, since the physical locations and layout may be different in the other database instance or database software version.


cmp - Compares two files byte by byte and displays the first mismatch
diff - tells the changes to be made to make the files identical


Kill $!  command to kill the last background job

rm -r * command is used to delete all files in the current directory and all its sub-directories?



The first set of the three permissions (rw) pertains to the owner of the file, indicating that the owner has
A.executable permission only
B.write and executable permissions
C.both read and executable permissions.
D.both read and write permissions
Ans:D


The command which transcribes the standard input to the standard output and also makes a copy of the same in a file is
A.Tee   
B.tr
C.sort
D.grep
Ans:A

Which command is used to remove the read permission of the file 'note' from both the group and others?
A.chmod go+r note
B.chmod go+rw note
C.chmod go-x note
D.chmod go-r, 4-x note  
Ans:D

Which command is used to copy all files having the string chap and any two characters after that to the progs directory?
A.cp chap?? Progs   
B.cp chap* progs
C.cp chap[12] /progs/*.*
D.cp chap?? /progs/*
Ans:A

du stands for ‘disk usage’. With the help of this command you can find the disk capacity and free space of the disk.

‘inode’ the data structure used to maintain file identification each file has a separate inode and a unique inode number.

given the IP address 201.14.78.65 and the subnet mask 255.255.255.224 what is the subnet address?
(a) 201.14.78.32 (b) 201.14.78.64 (c)201.14.78.65 (d) 201.14.78.224
What is the answer please explain
since first 3 bytes of subnet mask is 255.255.255. & first three bytes of IP address is first 3 bytes of subnet address is 201.14.78. The last bytes is 65& 224 = 01000001(bin) & 11100000 (bin) = 01000000 (bin) = 64

Two prompts, PS1 (Primary Prompt), PS2 (Secondary Prompt) are available in a UNIX system.

A pipe is two or more commands separated by pipe char '|'. That tells the shell to arrange for the output of
the preceding command to be passed as input to the following command.
Example : ls -l | pr
The output for a command ls is the standard input of pr.
When a sequence of commands are combined using pipe, then it is called pipeline.


The @@ERROR automatic variable returns the error code of the last Transact-SQL statement. If there
was no error, @@ERROR returns zero. Because @@ERROR is reset after each Transact-SQL statement,
it must be saved to a variable if it is needed to process it further after checking it.

SHARE

About df

    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment