0% found this document useful (0 votes)
22 views13 pages

Bca 2 Os Unit-4 Assignment Quiz

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views13 pages

Bca 2 Os Unit-4 Assignment Quiz

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 13

10/15/24, 8:04 PM BCA 2 OS UNIT-4 ASSIGNMENT QUIZ

BCA 2 OS UNIT-4 ASSIGNMENT QUIZ


Total points 32/34

ITM College, Aligarh

To create a new directory, which command is used? * 1/1

`mkdir`

`rmdir`

`touch`

`newdir`

What command is used to log into a Unix system? * 1/1

`start`

`login`

`connect`

`enter`

https://docs.google.com/forms/d/e/1FAIpQLSernWNUj_jHo7PvEifIc0_UMoSFJ38VzpidMRSnbkKNJ38scg/viewscore?viewscore=AE0zAgBddeRpxZN… 1/13
10/15/24, 8:04 PM BCA 2 OS UNIT-4 ASSIGNMENT QUIZ

Which command displays the manual pages for a command? * 1/1

`help`

`man`

`info`

docs`

How do you log off from a Unix session? * 1/1

`exit`

`logout`

Both A and B

`quit`

What does the command `pwd` do? * 1/1

Prints the working directory

Prints the user name

Prints the date

Prints the list of files

https://docs.google.com/forms/d/e/1FAIpQLSernWNUj_jHo7PvEifIc0_UMoSFJ38VzpidMRSnbkKNJ38scg/viewscore?viewscore=AE0zAgBddeRpxZN… 2/13
10/15/24, 8:04 PM BCA 2 OS UNIT-4 ASSIGNMENT QUIZ

Which of the following is a valid file name in Unix? * 1/1

`file name.txt`

`file_name.txt`

`file:name.txt`

`file*name.txt`

Which command shows disk space usage? * 1/1

`du`

`df`

`diskusage`

`size`

Your login directory is typically located where? * 1/1

`/usr`

`/home`

`/var`

`/tmp`

https://docs.google.com/forms/d/e/1FAIpQLSernWNUj_jHo7PvEifIc0_UMoSFJ38VzpidMRSnbkKNJ38scg/viewscore?viewscore=AE0zAgBddeRpxZN… 3/13
10/15/24, 8:04 PM BCA 2 OS UNIT-4 ASSIGNMENT QUIZ

What does the command `ls -l` display? * 1/1

Detailed list of files

Only directories

Hidden files

Disk usage

How can you specify a file with spaces in its name? * 1/1

Use quotes

Escape spaces with backslashes

Both A and B

Spaces are not allowed in file names

Which command is used to change file permissions? * 1/1

`chmod`

`chown`

`cp`

`mv`

https://docs.google.com/forms/d/e/1FAIpQLSernWNUj_jHo7PvEifIc0_UMoSFJ38VzpidMRSnbkKNJ38scg/viewscore?viewscore=AE0zAgBddeRpxZN… 4/13
10/15/24, 8:04 PM BCA 2 OS UNIT-4 ASSIGNMENT QUIZ

What does `cat` do? * 1/1

Concatenates files

Displays file content

Both A and B

Deletes files

What command would you use to search for a specific text in files? * 1/1

`find`

`grep`

`locate`

`search`

Which text editor is commonly used in Unix? * 1/1

Notepad

Word

vi

Excel

https://docs.google.com/forms/d/e/1FAIpQLSernWNUj_jHo7PvEifIc0_UMoSFJ38VzpidMRSnbkKNJ38scg/viewscore?viewscore=AE0zAgBddeRpxZN… 5/13
10/15/24, 8:04 PM BCA 2 OS UNIT-4 ASSIGNMENT QUIZ

What does `touch filename` do? * 1/1

Changes the file content

Creates an empty file

Deletes the file

Copies the file

What is the purpose of log files in Unix? * 1/1

Keep a record of system events

Backup files

Encrypt data

Store user data

Which command can be used to compare two files? * 1/1

`cmp`

`diff`

Both A and B

`compare`

https://docs.google.com/forms/d/e/1FAIpQLSernWNUj_jHo7PvEifIc0_UMoSFJ38VzpidMRSnbkKNJ38scg/viewscore?viewscore=AE0zAgBddeRpxZN… 6/13
10/15/24, 8:04 PM BCA 2 OS UNIT-4 ASSIGNMENT QUIZ

How do you view a file one screen at a time? * 1/1

`cat`

`more`

`head`

`tail`

What does `chmod 755 filename` do? * 1/1

Gives read, write, execute permissions to the owner and read, execute
permissions to others

Denies all permissions

Grants all permissions to everyone

Grants only read permissions

Which command is used to list all files including hidden ones? * 1/1

`ls`

`ls -a`

`ls -l`

`ls -h`

https://docs.google.com/forms/d/e/1FAIpQLSernWNUj_jHo7PvEifIc0_UMoSFJ38VzpidMRSnbkKNJ38scg/viewscore?viewscore=AE0zAgBddeRpxZN… 7/13
10/15/24, 8:04 PM BCA 2 OS UNIT-4 ASSIGNMENT QUIZ

In Unix, what does the tilde (~) represent? * 1/1

Current directory

Parent directory

Home directory

Root directory

What is the output of `df -h`? * 1/1

Disk space usage in human-readable format

File permissions

List of running processes

Network connections

What is the significance of the `/etc` directory? * 1/1

Contains user home directories

Contains system configuration files

Contains temporary files

Contains executable files

https://docs.google.com/forms/d/e/1FAIpQLSernWNUj_jHo7PvEifIc0_UMoSFJ38VzpidMRSnbkKNJ38scg/viewscore?viewscore=AE0zAgBddeRpxZN… 8/13
10/15/24, 8:04 PM BCA 2 OS UNIT-4 ASSIGNMENT QUIZ

What command would you use to view the first 10 lines of a file? * 0/1

`tail`

`head`

`cat`

`more`

Correct answer

`head`

Which command is used to display currently logged-in users? * 1/1

`who`

`users`

`whoami`

`id`

Which of the following is a way to redirect output to a file? * 1/1

`command > file`

`command >> file`

Both A and B

`command | file`

https://docs.google.com/forms/d/e/1FAIpQLSernWNUj_jHo7PvEifIc0_UMoSFJ38VzpidMRSnbkKNJ38scg/viewscore?viewscore=AE0zAgBddeRpxZN… 9/13
10/15/24, 8:04 PM BCA 2 OS UNIT-4 ASSIGNMENT QUIZ

How can you terminate a running process in Unix? * 1/1

`stop`

`kill`

`terminate`

`end`

What does the command `rmdir` do? * 1/1

Removes a file

Removes a directory

Renames a file

Moves a directory

Which command can you use to find files by name? * 1/1

`search`

`find`

`locate`

Both B and C

https://docs.google.com/forms/d/e/1FAIpQLSernWNUj_jHo7PvEifIc0_UMoSFJ38VzpidMRSnbkKNJ38scg/viewscore?viewscore=AE0zAgBddeRpxZ… 10/13
10/15/24, 8:04 PM BCA 2 OS UNIT-4 ASSIGNMENT QUIZ

Which command shows a live view of system processes? * 1/1

`top`

`ps`

`htop`

Both A and C

What does the command `tail -f filename` do? * 1/1

Displays the last few lines of a file and waits for new lines

Deletes the file

Displays the first few lines of a file

Copies the file

In Unix, what is a symbolic link? * 1/1

A copy of a file

A shortcut to a file or directory

A compressed version of a file

A temporary file

https://docs.google.com/forms/d/e/1FAIpQLSernWNUj_jHo7PvEifIc0_UMoSFJ38VzpidMRSnbkKNJ38scg/viewscore?viewscore=AE0zAgBddeRpxZ… 11/13
10/15/24, 8:04 PM BCA 2 OS UNIT-4 ASSIGNMENT QUIZ

Which command is used to change the owner of a file? * 1/1

`chmod`

`chown`

`chgrp`

`mv`

What does the command `cp -r` do? * 0/1

Copies a file

Copies a directory and its contents recursively

Removes a directory

Moves a file

Correct answer

Copies a directory and its contents recursively

This content is neither created nor endorsed by Google. Report Abuse - Terms of Service - Privacy Policy

Forms

https://docs.google.com/forms/d/e/1FAIpQLSernWNUj_jHo7PvEifIc0_UMoSFJ38VzpidMRSnbkKNJ38scg/viewscore?viewscore=AE0zAgBddeRpxZ… 12/13
10/15/24, 8:04 PM BCA 2 OS UNIT-4 ASSIGNMENT QUIZ

https://docs.google.com/forms/d/e/1FAIpQLSernWNUj_jHo7PvEifIc0_UMoSFJ38VzpidMRSnbkKNJ38scg/viewscore?viewscore=AE0zAgBddeRpxZ… 13/13

You might also like