Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

LONG QUIZ FIRST YEAR SAM

Total questions: 40

Worksheet time: 20mins

Name
Class
Date
1.

Which command is used to set default file permissions?

a)

chmod

b)

umask

c)

chgrp

d)

passwd

2.

Which of the following is NOT a reason for using text editors in Linux?

a)

Writing scripts

b)

Editing configuration files

c)

Running compiled applications

d)

Modifying text-based data files

3.

Which command is used to change a user's password in Linux?

a)

passwd

b)

password

c)

pwd

d)

chpass

4.

Which LibreOffice tool is used for creating presentations?

a)

Math

b)

Impress

c)

Writer

d)

Base

5.

Which command in vi saves changes to a file?

a)

:x

b)

:w

c)

:q

d)

:save

6.

Which text editor is designed for beginners in Linux?

a)

vi

b)

nano

c)

emacs

d)

gedit

7.

Which Linux text editor is designed to run only in GUI mode?

a)

nano

b)

gedit

c)

vim

d)

emacs

8.

What command in vi moves the cursor one page down?

a)

Ctrl + f

b)

Finds a word in the text

c)

Moves the cursor one character to the right

d)

Deletes a character

9.

What does "rw-r--r--" signify in file permissions?

a)

Only the owner can read and write; others can only read.

b)

Everyone can read and write.

c)

Only the owner can modify the file.

d)

No one has access to the file.

10.

Which file type symbol represents a symbolic link?

a)

d

b)

-

c)

l

d)

b

11.

Which command allows you to change a file's ownership?

a)

chmod

b)

chown

c)

umask

d)

sudo

12.

Which LibreOffice tool is used for creating mathematical formulas?

a)

Writer

b)

Impress

c)

Draw

d)

Math

13.

Which command removes the read and write permissions for all users except the owner and group owner?

a)

go=rw

b)

o-rw

c)

u+x

d)

a=r

14.

Which mode in the vi editor allows you to type text directly into the document?

a)

Command mode

b)

Insert mode

c)

Replace mode

d)

Edit mode

15.

Which of the following is a spreadsheet application in LibreOffice?

a)

Writer

b)

Calc

c)

Impress

d)

Draw

16.

Which command inserts a new line below the current line in vi editor?

a)

O

b)

o

c)

A

d)

I

17.

What does the 'd0' command do in vi editor?

a)

Deletes the entire file

b)

Deletes the current line

c)

Deletes from the cursor position to the beginning of the line

d)

Deletes from the cursor position to the end of the file

18.

What does the "id" command do in Linux?

a)

Changes file permissions

b)

Displays user identity

c)

Deletes a user account

d)

Copies a file

19.

Which command is used to temporarily become the superuser in Linux?

a)

sudo

b)

su

c)

chown

d)

chmod

20.

Which octal value represents full permissions for a file?

a)

755

b)

700

c)

777

d)

644

21.

In LibreOffice Impress, which tool allows users to create 3D text images?

a)

Fontworks

b)

DataPilot

c)

Presenter Console

d)

AutoComplete

22.

Alex wants to change the ownership of a file to another user named mike. What command should he use?

a)

chmod mike file.txt

b)

chown mike file.txt

c)

chgrp mike file.txt

d)

su mike file.txt

23.

A user accidentally pressed 'i' in vi editor. What mode are they in?

a)

Insert mode

b)

Command mode

c)

Replace mode

d)

Visual mode

24.

A student accidentally typed unwanted text in vi. How can they delete the previous character?

a)

x

b)

Ctrl + h

c)

d0

d)

Backspace

25.

James is editing a long text file in vi and wants to move five lines down from the current position. What key sequence should he use?

a)

5j

b)

5k

c)

Ctrl + f

d)

Ctrl + d

26.

A user wants to change ownership of a file named "report.txt" to user "nika". What command should they use?

a)

chown nika report.txt

b)

chmod nika report.txt

c)

umask nika report.txt

d)

chgrp nika report.txt

27.

A Linux administrator wants to change the group ownership of a file to "admins". What command should they use?

a)

chgrp admins filename

b)

chown admins filename

c)

umask admins filename

d)

sudo admins filename

28.

A user needs to allow group members to read and write a file, but not execute it. What command should you use?

a)

chmod 774 filename

b)

chmod 664 filename

c)

chmod 755 filename

d)

chmod 644 filename

29.

An admin wants to make a file readable, writable, and executable by all users. Which command is appropriate?

a)

chmod 777 filename

b)

chmod 755 filename

c)

chmod 700 filename

d)

chmod 644 filename

30.

A user wants to change a directory's permission to allow only the owner to access it. What command should they use?

a)

chmod 700 dirname

b)

chmod 755 dirname

c)

chmod 644 dirname

d)

chmod 777 dirname

31.

A student needs to create a new file in vi. Which command should they use?

a)

vi filename

b)

:new filename

c)

touch filename

d)

:e filename

32.

A user wants to append text to the end of a line in vi. Which command should they use?

a)

A

b)

a

c)

O

d)

o

33.

A Linux administrator needs to switch to the root user temporarily. Which command should they use?

a)

su

b)

sudo

c)

root

d)

sudo su

34.

A user wants to delete the entire line in vi. Which command should they use?

a)

dd

b)

d$

c)

dG

d)

d0

35.

An admin wants to assign read, write, and execute permissions only to the file owner. Which command should they use?

a)

chmod 700 filename

b)

chmod 755 filename

c)

chmod 644 filename

d)

chmod 777 filename

36.

A developer needs to grant a specific user (alice) both ownership and group ownership of a file called project.txt. Which command should they use?

a)

chown alice:alice project.txt

b)

chown 755 project.txt

c)

chown alice project.txt

d)

chgrp alice project.txt

37.

An IT department is configuring a public-facing directory where all users should be able to read files but only the owner should modify them. What permission should be set?

a)

chmod 777 directory

b)

chmod 755 directory

c)

chmod 700 directory

d)

chmod 644 directory

38.

A student wants to copy five lines in vi. What command should they use?

a)

5yy

b)

yy

c)

5y

d)

y5

39.

An IT engineer wants to move the cursor five words forward in vi. What command should they use?

a)

5w

b)

5e

c)

5b

d)

Ctrl + f

40.

A Linux admin wants to restrict a file so that only the owner can read and modify it. Which command should they use?

a)

chmod 600 filename

b)

chmod 644 filename

c)

chmod 700 filename

d)

chmod 755 filename