Python Forum
Need help with the following questions and i answered few
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need help with the following questions and i answered few
#1
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
Reply
#2
If you expect someone to do your homework for you, you're on the wrong forum
Reply
#3
Sorry
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [Answered] Retrieve a set of rows from text file knob 4 1,739 Dec-22-2021, 07:45 PM
Last Post: knob
  Discord bot that asks questions and based on response answers or asks more questions absinthium 1 34,477 Nov-25-2017, 06:21 AM
Last Post: heiner55

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020