Question 1 : Which command is used to list all files and directories in the current directory ?

A) ls
B) list
C) dir
D) show

Question 2 : What command is used to display the contents of a file in Linux ?

A) cat
B) show
C) display
D) view

Question 3 : Which command is used to change the permissions of a file ?

A) chmod
B) chown
C) chperm
D) changeperm

Question 4 : How do you find out the current working directory in Linux ?

A) pwd
B) cwd
C) dir
D) loc

Question 5 : Which command is used to remove a directory in Linux ?

A) rmdir
B) removedir
C) deldir
D) rm -d

Question 6 : What does TCP stand for ?

A) Transmission Control Protocol
B) Transfer Control Protocol
C) Transmission Communication Protocol
D) Transfer Communication Protocol

Question 7 : Which port number is used by the HTTP protocol by default ?

A) 21
B) 22
C) 80
D) 443

Question 8 : What is the main purpose of the ARP protocol ?

A) To map an IP address to a MAC address
B) To map a MAC address to an IP address
C) To route data packets
D) To encrypt data

Question 9 : Which command is used to check network interfaces and IP configuration on a Linux machine ?

A) ipconfig
B) ifconfig
C) netconfig
D) config

Question 10 : What does ICMP stand for ?

A) Internet Control Message Protocol
B) Internal Communication Management Protocol
C) Internet Communication Management Protocol
D) Internal Control Message Protocol

Question 11 : How do you print "Hello, World!" in Python ?

A) print "Hello, World!"
B) echo "Hello, World!"
C) printf("Hello, World!")
D) print("Hello, World!")

Question 12 : What is the correct syntax to define a function in Python ?

A) function myFunction():
B) def myFunction():
C) func myFunction():
D) def myFunction:

Question 13 : How do you insert COMMENTS in Python code ?

A) // This is a comment
B) # This is a comment
C) /* This is a comment */
D)

Question 14 : Which symbol is used to redirect the output of a command to a file in bash ?

A) >
B) <
C) |
D) &

Question 15 : How do you create a variable in bash ?

A) varname = value
B) varname == value
C) varname: value
D) varname=value

Question 16 : Which command is used to display a message or output in bash ?

A) echo
B) print
C) show
D) display

Question 17 : Who is the creator of Linux ?

A) Bill Gates
B) Steve Jobs
C) Linus Torvalds
D) Mark Zuckerberg

Question 18 : Which of the following is a Linux distribution ?

A) Windows
B) Ubuntu
C) iOS
D) macOS

Question 19 : Which SQL statement is used to retrieve data from a database ?

A) GET
B) EXTRACT
C) SELECT
D) RETRIEVE

Question 20 : How do you select all the columns from a table named "users" ?

A) SELECT * FROM users;
B) SELECT all FROM users;
C) SELECT columns FROM users;
D) SELECT every FROM users;

If you want to score 20/20 on this test, sign up for our Cybersecurity trainings.