Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.

Unit 2 MCQs System Utilities and Basic Commands

CSE105 — Creative Engineering Workshop 60 questions. Pick an option to check it.

Read the notes Subjective questions

0 of 60 answered 0 right 0 wrong , 60 left

  1. Question 1 of 60 Command Structure Easy

    In a typical Linux command, which part specifies additional information that modifies the command's behavior?

  2. Question 2 of 60 Command Structure Easy

    What is the general syntax of a Linux command?

  3. Question 3 of 60 cal Easy

    What does the cal command display?

  4. Question 4 of 60 date Easy

    Which command is used to display the current system date and time?

  5. Question 5 of 60 echo Easy

    What is the primary purpose of the echo command?

  6. Question 6 of 60 printf Easy

    How does printf differ from echo in the shell?

  7. Question 7 of 60 bc Easy

    What is the bc command mainly used for?

  8. Question 8 of 60 bc Easy

    Which feature makes bc more capable than expr for arithmetic?

  9. Question 9 of 60 expr Easy

    What type of arithmetic does the expr command primarily evaluate?

  10. Question 10 of 60 expr Easy

    What is the result of the command expr 5 + 3?

  11. Question 11 of 60 script Easy

    What does the script command do?

  12. Question 12 of 60 passwd Easy

    What is the passwd command used for?

  13. Question 13 of 60 who Easy

    What does the who command display?

  14. Question 14 of 60 whoami Easy

    What does the whoami command output?

  15. Question 15 of 60 uname Easy

    What does the uname command display by default?

  16. Question 16 of 60 uname -a Easy

    What does the option -a do when used with uname?

  17. Question 17 of 60 uptime Easy

    What information does the uptime command provide?

  18. Question 18 of 60 tty Easy

    What does the tty command display?

  19. Question 19 of 60 stty Easy

    What is the stty command used for?

  20. Question 20 of 60 man command and manual page navigation Easy

    Which key is commonly used to quit a manual page opened with man?

  21. Question 21 of 60 Command Structure Medium

    In the command ls -l -a /home, which part represents the arguments (as opposed to options)?

  22. Question 22 of 60 cal Medium

    Which command displays the calendar for the entire year 2024?

  23. Question 23 of 60 date Medium

    What does the command date +"%Y-%m-%d" output?

  24. Question 24 of 60 echo Medium

    Which option allows echo to interpret escape sequences such as \n (newline)?

  25. Question 25 of 60 printf Medium

    What is the output of printf "%.2f\n" 3.14159?

  26. Question 26 of 60 bc Medium

    Which command computes to give the result 2.50?

  27. Question 27 of 60 expr Medium

    What is the result of expr 10 % 3?

  28. Question 28 of 60 expr Medium

    Why does expr 5 * 3 often produce an error in the shell?

  29. Question 29 of 60 script Medium

    What is the primary purpose of the script command?

  30. Question 30 of 60 passwd Medium

    When a regular (non-root) user runs passwd with no arguments, what happens?

  31. Question 31 of 60 who Medium

    Which command shows a list of all users currently logged into the system?

  32. Question 32 of 60 whoami Medium

    How does whoami differ from who am i?

  33. Question 33 of 60 uname Medium

    What does the bare command uname typically print?

  34. Question 34 of 60 uname -a Medium

    What information does uname -a provide compared to plain uname?

  35. Question 35 of 60 uptime Medium

    In the output of uptime, what do the three numbers after "load average" represent?

  36. Question 36 of 60 tty Medium

    What does the tty command print?

  37. Question 37 of 60 stty Medium

    Which command displays the current terminal line settings, including baud rate and control characters?

  38. Question 38 of 60 man command and manual page navigation Medium

    While viewing a man page, which key is used to search forward for a pattern?

  39. Question 39 of 60 man command and manual page navigation Medium

    What is the purpose of the section number in a command like man 5 passwd?

  40. Question 40 of 60 echo Medium

    Given the variable assignment name=Alice, what does echo "Hello $name" output?

  41. Question 41 of 60 Command Structure Hard

    Consider the command ls -l -a /home versus ls -la /home. Which statement about Unix command structure is most accurate?

  42. Question 42 of 60 cal Hard

    The command cal 9 1752 on many Unix systems shows September 1752 missing 11 days (3rd to 13th). What is the reason?

  43. Question 43 of 60 date Hard

    What does date -d "next friday" +%Y-%m-%d output when run on a Friday?

  44. Question 44 of 60 echo Hard

    Given echo -e "a\tb\nc", assuming -e is honored, how many lines and what layout appear?

  45. Question 45 of 60 printf Hard

    What does printf "%05.2f\n" 3.14159 output?

  46. Question 46 of 60 bc Hard

    Why does echo "10/3" | bc return 3 while echo "scale=4; 10/3" | bc returns 3.3333?

  47. Question 47 of 60 expr Hard

    What is the result of expr 5 \* 3 and why is the backslash needed?

  48. Question 48 of 60 expr Hard

    What does expr length "hello world" return, and what does it demonstrate about expr?

  49. Question 49 of 60 script Hard

    A user runs script session.log, executes commands, then forgets to type exit. What is the consequence?

  50. Question 50 of 60 passwd Hard

    A non-root user runs passwd anotheruser. What is the most likely outcome?

  51. Question 51 of 60 who Hard

    How does the output of who am i differ from whoami?

  52. Question 52 of 60 whoami Hard

    After running sudo whoami in a terminal logged in as user alice, what is printed?

  53. Question 53 of 60 uname Hard

    Why might uname -m return x86_64 while a 32-bit program still runs fine on the same machine?

  54. Question 54 of 60 uname -a Hard

    Which fields does uname -a combine that individual uname flags would otherwise require multiple invocations to obtain?

  55. Question 55 of 60 uptime Hard

    The uptime output ends with load average: 4.00, 2.00, 1.00 on a 4-core system. What is the correct interpretation?

  56. Question 56 of 60 tty Hard

    Running tty inside a script whose input is redirected from a file (./script < input.txt) is likely to print what?

  57. Question 57 of 60 stty Hard

    A terminal displays typed characters twice or behaves oddly after a program crash. Which command best restores sane settings?

  58. Question 58 of 60 stty Hard

    What is the effect of stty -echo followed by reading input, and why is it commonly used?

  59. Question 59 of 60 man command and manual page navigation Hard

    You want the manual entry for the printf C library function, but man printf shows the shell command. Which command targets the C function?

  60. Question 60 of 60 man command and manual page navigation Hard

    Inside man's pager, you type /socket then press n twice. What happens?

That's unit 2

Answer a few questions and your score shows up here.