Unix Exam 2
Which of the following is the correct extension of the Python file?
.pl
What will be the output of the following Python function: Len([hello",2,4,6])
4
Which of these is the 'True' value in Perl?
5
When a child process is created, which of the following is a possibility in terms of the execution or address space of the child process?
A) The child process runs concurrently with the parent. B) The child process has a new program loaded into it. C) The child is a duplicate of the parent.
Which type of Programming does Python support?
A) object-oriented programming B) structured programming C) functional programming
In Perl, ___ function is used for removing the last character from the line.
Chop
All processes in UNIX first translate to a zombie process upon termination.
F
Perl is the only language to take advantage of regular expressions.
F
The exec() system call creates a new process.
F
Which of the following is used to define a block of code in Python language
Indentation
A process is a program in execution.
T
A subroutine can be called from an external perl program.
T
Perl variables have no type and no initialization.
T
A process control block ____
includes information on the process's state