Need help with these python and linux multiple choice questions

User Generated

grpuevpuvg

Programming

Description

Some questions are tricky.

1: In linux, how can you display detailed statistics of a file?(D)

A) file

B) fstat

C) filestat

D) info

2: What 2 kernel calls are made when you invoke a shell?

A) fork and exec B) exec and clone C) accept and exit D) fork and getpid

3: In python, what is the difference between x.sorted() and sorted(x)

A) One sorts the array, the other returns the array elements and empties the array.

B) One sorts the reference of the array, the other returns whether the array is sorted or not.

C) One sorts the reference of the array, one returns a sorted copy .

4: What does a $ and a ^ signify in a regex?

A) More and less of a pattern to match

B) End and beginning of a pattern to match

C) Top and bottom of a pattern to match

5: On a RHEL7 system, which command do you use to view system logs?(D)

A) syslog

B) showlogs --system

C) eventview

D) journalctl

6: In Perl, what command stops execution of the program and reports an error?(A)

A) die

B) catch C) end D) fail

7: If a soft link is a link to another filename in linux, what is a hard link?

A) A link that cannot be removed

B) A link to the original inode

C) A link to the sector and cylinder position on the disk

D) A link caused by setting the sticky bit 8: A dictionary in Python is an example of what kind of data structure? (B)

A) hash B) class C) scalar D) list

9: How would you determine what hops your data makes on the path of one host to another?

A) routestat

B) ping

C) traceroute

D) nettrace

10: If a process is operating with stale data or unresponsive, and you want to try to reset it without killing it, what signal would you send it?©

A) HUP B) TRAP C) KILL D) TERM

11: In what order are the three stages of establishing a TCP connection?(B)ls

1) SYN ACK

2) ACK

3) SYN

4) FIN

User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

Explanation & Answer

Attached.

1

Running Head: PYTHON AND LINUX MULTIPLE CHOICE QUESTIONS

Python and Linux Multiple Choice Questions
Student’s Name
Institution

2

PYTHON AND LINUX MULTIPLE CHOICE QUESTIONS
Python and Linux Multiple Choice Questions
1: In linux, how can you display detailed statistics of a file?
A) file
B) fstat
C) filestat
D) info
Answer: A)file
2: What 2 kernel calls are made when you invoke a shell?
A) fork and exec B) exec and clone C) accept and exit D) fork and getpid
Answ...


Anonymous
I use Studypool every time I need help studying, and it never disappoints.

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4

Similar Content

Related Tags