Tag: operating systems

Questions Related to operating systems

  1. Append the content in file1 and cat par.3 par.4 par.5 >> report -> contents of files par.2 par.4 par.5 appended to file report

  2. cat file1>file1 - file emptied and cat par.3 par.4 par.5 >> report -> contents of files par.2 par.4 par.5 appended to file report

  3. Both will do the same poeration. Will append the data to the destination files.

  4. cat file1>file1 - Wont do any operation in file 1 and cat par.3 par.4 par.5 >> report -> contents of files par.2 par.4 par.5 appended to file report


Correct Option: B
  1. ‘grep’ is a pattern search command. It will display the line which contains the pattern

  2. ‘grep’ is a pattern search command. It will display thepattern alone

  3. ‘grep’ can be used to search the patterns with the conditions

  4. It is an efficient command to search the multiple patterns.


Correct Option: A
  1. end pid

  2. delete pid

  3. kill pid

  4. kill all


Correct Option: C
  1. Tells the shell to arrange for the output of the preceding command to be passed as input to the following command

  2. It is just used to connect two diifferent commands

  3. It is useful when you use awk commands only

  4. Tells the shell to arrange for the output


Correct Option: A
  1. cat file2 - it will take the content to the file 2 and cat>file2 will display an error

  2. Both used to display the contents

  3. cat file2 - it displays the content of the file 2 and cat>file2 - if the file is empty it creates the content into the file2 and if the file has contents it overwrittens

  4. Both used to append the contents


Correct Option: C

What is Output - awk 'BEGIN { if (length($0) > max) max= length($0) } | END { print max }' test.txt

  1. Will print the longest line

  2. Will display all the content of the file

  3. Print the count of the first line of the file.

  4. Will give the count of the longest line


Correct Option: D
  1. Alt + F7

  2. Alt + F5

  3. Alt + Enter

  4. Alt + F10


Correct Option: C
  1. Drops down the window control menu

  2. Drops down the window File menu

  3. Closes the Window

  4. Maximize the Window


Correct Option: A
  1. Restarts the PC

  2. Loads the last known good Configuration

  3. Boots in Safe Mode

  4. None of the Above


Correct Option: C