unix

10
Which of the following is not involved with system programming? Select an answer A. I/o Processors B. CPU *C. Printer D. All the options are correct The default integer value of standard error file is: Select an answer A. 1 *B. 2 C. 4 D. 0 Every Command does not have all sections. Select an answer A. TRUE *B. FALSE We can redirect the error messages to alternate location using the error redirection operator. Select an answer *A. TRUE B. FALSE Which option is used with rm command to make the command prompt the user with each filename and a ?, before acting on it? Select an answer A. -r B. -x *C. -i D. -1 Which of the following commands is used to obtain a list of all files by modification time? Select an answer A. ls -1 *B. ls-t C. ls-i D. ls-R ps command shows a combination of information from the process table and the user area. Select an answer A. TRUE B. FALSE*

Upload: shohan-ahmed

Post on 16-Jul-2015

2.579 views

Category:

Engineering


0 download

TRANSCRIPT

Page 1: Unix

Which of the following is not involved with system programming?

Select an answerA. I/o ProcessorsB. CPU*C. PrinterD. All the options are correct

The default integer value of standard error file is:

Select an answerA. 1*B. 2C. 4D. 0

Every Command does not have all sections.

Select an answerA. TRUE*B. FALSE

We can redirect the error messages to alternate location using the error redirection operator.

Select an answer*A. TRUEB. FALSE

Which option is used with rm command to make the command prompt the user with each filename and a ?, before acting on it?

Select an answerA. -rB. -x*C. -iD. -1

Which of the following commands is used to obtain a list of all files by modification time?

Select an answerA. ls -1*B. ls-tC. ls-iD. ls-R

ps command shows a combination of information from the process table and the user area.

Select an answerA. TRUEB. FALSE*

Page 2: Unix

Regular expressions allow matching and manipulation of textual data.

Select an answer*A. TRUEB. FALSE

The engine of UNIX is:

Select an answerA. The ShellB. Command*C. The kernelD. None of the options are correct

Which of the following options will be used to display number of blocks used by a file?

Select an answerA. -cB. -iC. -d*D. -s

Command for changing permissions is:

Select an answer*A. ChmodB. ChgrpC. CatD. Cd

alphasort() and versionsort() functions are used as the comparison function.

Select an answer*A. TRUEB. FALSE

What does date command print?

Select an answerA. Login dateB. Log out date*C. System dateD. None of the options are correct

Which command will be used with vi editor to insert text to left of cursor?

Select an answerA. SB. SC. A*D. I

Page 3: Unix

fork() does not creates a new copy of the signal table for the new process.

Select an answerA. TRUE*B. FALSE

int alphasort(const void *a, const void *b); is a valid function.

Select an answerA. TRUE*B. FALSE

The role of assemblers is a basic machine that passes through a program.

Select an answer*A. TRUEB. FALSE

Which symbol is used to specify a group of character?

Select an answerA. ()B. {}C. []*D. <>

Which of the following is used for matching patterns in regular expression?

Select an answer*A. ^B. >C. <*D. $

-mtime n operator is used for search files which were modified 24 hours ago.

Select an answer*A. TRUEB. FALSE

How many types of links are there?

Select an answerA. 1*B. 2C. 3D. 4

Which of the following is not the filter command?(Please select ALL that apply)

Select an answerA. HeadB. Grep*C. :w*D. Ex

Page 4: Unix

E. Uniq

File name is case sensitive.

Select an answer*A. TRUEB. FALSE

unlink and rm does the same to a file.

Select an answer*A. TRUEB. FALSE

In UNIX, fork is a system call that creates a new pcb.

Select an answer*A. TRUEB. FALSE

Which command is used to remove a directory?

Select an answerA. Rd*B. RmdirC. DldirD. Rdir

Which command list hidden files?

Select an answerA. ls-l*B. ls-aC. ls-hD. ls-If

Kernel is loaded into memory when the system boots.

Select an answer*A. TRUEB. FALSE

We can redirect the error messages to alternate location using the error redirection operator.

Select an answerA. TRUE*B. FALSE

Which of the following is not a communication command?

Select an answerA. writeB. mesg

Page 5: Unix

C. mail*D. grep

While working with mail command, which command is used to save mail i a separate file?

Select an answer*A. SB. RC. WD. D

Command for Run a program with modified scheduling priority:

Select an answer*A. nice/reniceB. netstatC. psD. vmstat

What is the primary job of the shell?

Select an answer*A. A command interpreterB. The core of the operating systemC. Interpreter between applications and the OSD. Shell programming

A directory contains .c files which have to be compressed. Which is the valid command to compress them?

Select an answerA. gzip *.c*B. gzip -d *.cC. compress *.c cporg.gzD. None of the options are correct

While working with mail command, which command is used to save mail i a separate file?

Select an answer*A. sB. rC. wD. d

How do we get date information into day variable in Bourne shell?

Select an answerA. day='date'*B. day='date'C. day="date"D. day=date

Page 6: Unix

The task of adjusting programs so they may be placed in arbitrary core locations in called:

Select an answer*A. LoaderB. AllocationC. RelocationD. Macros

The > operator is used for:

Select an answerA. Comparison of two numbersB. Input Redirection*C. Output RedirectionD. Piping

Memory allocation by which the program is subdivided into equal portions is called _____.

Select an answer*A. PagingB. PartitioningC. FetchingD. Blocking

A new file is created, when we create a link that is:

Select an answerA. HardB. Symbolic*C. All the options are correctD. None of the options are correct

Which command is used to print the number of characters in a file?

Select an answerA. -lB. -w*C. -cD. -b

Which command is used to count just the number of characters in a file?

Select an answerA. wc- 1*B. wc-cC. wc-wD. wc-r

How do we switch from one mode to another mode in vi editor?

Select an answerA. Command Mode*B. Insert Mode

Page 7: Unix

C. Colon / Slash ModeD. Replace Mode

The task of adjusting programs so they may be placed in arbitrary core locations is called:

Select an answer*A. LoaderB. AllocationC. RelocationD. Macros

Which command is used to upload filename from local machine to remote machine?

Select an answerA. Mput*B. get filenameC. put filenameD. mput file list

How to remove blank lines from a file in an editor?

Select an answerA. Esc del*B. Esc ddC. Esc :ddD. Esc d

Wild card will extract of the requested information as per the input details like:

Select an answerA. ReadingB. AddingC. Deleting*D. All the options are correct

Which of the following is not involved with system programming?

Select an answerA. I/O ProcessorsB. CPU*C. PrinterD. All the options are correct

catemp.lst | sort | tee temp | uniq | cut d " " f2

What is the output of the file temp?

Select an answerA. Unsorted contents of emp.lst*B. Error in pipingC. Sorted contents of emp.lstD. None of the options are correct

Page 8: Unix

cat< file1 >file2 2> err.log

what is the output of the command?

Select an answerA. Concates file1 and file2 , if any error stored to "err.log" fileB. Concates file1 and file2 , if any error displayed on console*C. Contents of file1 is stored under file2, if any error stored to

"err.log" fileD. None of the options are correct

Which is the valid command to display all the files with size 100 to 399 bytes occupied?

Select an answerA. ls -l | tr -s " " | cut -d" " -f1-5,9 | grep -w "[0-3][0-9][0-9]"B. ls -ls | cut -d" " -f1-5,9 | grep -w "[0-3][0-9][0-9]"*C. ls |cut -d" " -f1-5,9 | grep -w "[0-3][0-9][0-9]"D. None of the options are correct

Which command is used to remove the read permission of the file note from both the group and others?

Select an answerA. chmodgo+r noteB. chmodgo+rw noteC. chmod go-x note*D. chmod go-r, 4-x note

Which of the following commands will show the current run level?

Select an answerA. boot -lB. who -bC. uptime*D. who -r

A program that places program into memory and also prepares them for execution is called:

Select an answer*A. LoaderB. CompilerC. InterpreterD. None of the options are correct

In the output of ls -l if the first character is an s the file type is:

Select an answer*A. Symbolic linkB. Socket special fileC. Block special fileD. Character special file

If programmer wants to repeat identical part of their program, __________ permit

Page 9: Unix

the programmers to define an abbreviation in his program.

Select an answerA. System Programming*B. MacrosC. Shell ScriptingD. Advanced Shell scripting

Which is the valid command to copy a file from /root directory to current directory?

Select an answerA. cp / root / filename*B. cp / root / filename $HOMEC. cp / root.filename / usr /username /currentD. None of the options are correct

Page 10: Unix

the programmers to define an abbreviation in his program.

Select an answerA. System Programming*B. MacrosC. Shell ScriptingD. Advanced Shell scripting

Which is the valid command to copy a file from /root directory to current directory?

Select an answerA. cp / root / filename*B. cp / root / filename $HOMEC. cp / root.filename / usr /username /currentD. None of the options are correct