0% found this document useful (0 votes)
12 views

Module 2 set 1- Chandan

The document consists of a series of multiple-choice questions related to Linux commands, programming concepts, network protocols, and data formats. It covers topics such as file permissions, time complexity, HTTP responses, and Git usage. Each question provides several options, with some correct answers indicated for specific questions.

Uploaded by

ozearcorp
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views

Module 2 set 1- Chandan

The document consists of a series of multiple-choice questions related to Linux commands, programming concepts, network protocols, and data formats. It covers topics such as file permissions, time complexity, HTTP responses, and Git usage. Each question provides several options, with some correct answers indicated for specific questions.

Uploaded by

ozearcorp
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

21 February 2025 14:20

1/28: Choose command equivalent to


chmod u=rwx, g=rx, o=rx
Options:
○ There is no right answer
○ chmod 766
○ chmod 755
○ chmod 533
○ chmod 557
○ The command is not valid

2/28: What is the command to change the group ownership of a file?


Options:
○ change -g
○ cgrp
○ chgrp
○ Group

3/28: Which of the following option of ls command can be used to view file inode number?
Options:
○ a
○ l
○ i (correct)
○ R
○ T

4/28: Find the slowest time


Options:
○ O(2^n)
○ O(logn)
○ O(n)
○ O(n^2)

5/28: Choose algorithm time complexity


Code snippet shown:
int n = arr.length;
int temp = 0;
for (int i = 0; i < n; i++) {
for (int j = i; j > 0; j--) {
if (arr[j] < arr[j-1]) {
temp = arr[j];
arr[j] = arr[j-1];
arr[j-1] = temp;
}
}
}
Options:
 O(n)
 O(n^2) (selected)
 The algorithm does not have time complexity
 O(n^3)

New Section 1 Page 1


6/28: Which time complexity have regular inner join without indexes
Options:
○ O(M+N)
○ O(logM*logN)
○ O(M^2+N^2)
○ O(MN)

7/28: Which protocol is better to use in a client-server system focused on file transfer?
Options:
○ HTTP
○ FTP
○ HTTPS
○ AMQP
○ SMTP

8/28: 401 responses from server in HTTP means


Options:
○ resource does not exist
○ the request came from an unauthorized user
○ this resource is not available to the user
○ the server is not available now

9/28: What permissions does the file have?


Options:
○ read, write and execute for other; read for user and group
○ read, write and execute for group, read for user and other
○ read and write for user, read and execute for group, read for other
○ read, write and execute for user; read for group and other

10/28: Which of the following is a traffic analyzer?


Options:
○ ping
○ netstat
○ tcpdump
○ Wireshark

11/28: Which protocol is used by ping?


Options:
○ SMTP
○ IP
○ EIGRP
○ ICMP

12/28: Which command displays the absolute path to the current directory?
Options:
○ dir
○ cd
○ ls
○ pwd

13/28: Mention the type that is not a "HTTP request"?


Options:
○ PUT
PULL

New Section 1 Page 2


○ PULL
○ TRACE
○ GET
○ DELETE

14/28: What is the kind of data exchange type of this document?:


{
"Content": "Dogs",
"Voice": "Bark"
}
Options:
○ YAML
○ JSON
○ base64
○ XML

15/28: Which DNS record converts the host name to an IPv6 address?
Options:
○ AAAA record
○ A record
○ MX record
○ TXT record

16/28 :Which of the following commands can be used to read contents of a text file?
○ more
○ readrc
○ less
○ cat

17/28: Which of the following options represents 211 in binary system?


○ 1101 1101
○ 1101 1000
○ 1100 1111
○ 1101 0011

18/28: What is GIT?


○ Version Control System
○ Programming language
○ Part of the computer hardware
○ Complex design pattern

19/28: How many bits are there in one byte?


○ 8
○ 16
○ 1024
○ 255

20/28: Symbols "ugo" in the command chmod in Linux systems mean:


○ General
○ Other
○ Unity
○ User

New Section 1 Page 3


○ Outline
○ Group

21/28: find /DirectoryName -type f -exec chmod 0644 {} ; Result of command will be:
○ Set 0644 permissions to files in certain directory
○ Find and remove files with 0644 permissions
○ Find and output files with 0644 permissions
○ Nothing

22/28: What of the following commands may be used for remote connection by SSH with using of specified key and
port?
○ ssh -t rsa -f ~/.ssh/key 192.168.16.@user
○ ssh -p 22 -i key
○ ssh -p 30000 -i ~/.ssh/key [email protected]
○ ssh -t rsa -p3 @192.168.16.2

23/28: Which network mask should you take to divide network 192.168.128.0/25 into the 5 sub-networks efficiently?
○ 255.248.255.0
○ 255.255.128.0
○ 255.255.240.0
○ 255.255.248.0

24/28: How would you set permissions on a newly created script so that it could be executed?
○ chmod u-x script.sh
○ chown u+x script.sh
○ chmod u-x script.sh
○ chown u-x script.sh

25/28: Choose the network ports that are NOT usually used for web services.
○ TCP/443
○ TCP/22
○ UDP/80
○ TCP/8080
○ TCP/80

26/28: Which of the following options can be used to check open TCP ports on a remote host? (Choose all correct
answers)

 tracert
 Telnet
 nc
 ping
 Ssh
27/28: Which file can you configure to ensure that certain file types are never committed to the local Git repository?

 git.ignore
 .gitignore
 ignore.git
 gitignore.txt

28/28: If you would like to download your repository from GitHub to your local environment, your choice will be:

 git fork
 git commit

New Section 1 Page 4


 git commit
 git clone
 git push

New Section 1 Page 5

You might also like