Google News
logo
Perl - Quiz(MCQ)
A)
Tim O'Reilly
B)
Larry Wall
C)
Jimmy Wales
D)
James Gosling

Correct Answer : Option (B) :   Larry Wall


Explanation : In December 1987 American programmer and linguist Larry Wall first released Perl 1.0 for computers running the UNIX operating system.

A)
December 1961
B)
December 1969
C)
December 1978
D)
December 1987

Correct Answer : Option (D) :   December 1987


Explanation : Perl was developed by Larry Wall in December 1987 as a general-purpose Unix scripting language to make report processing easier.

A)
Array
B)
Hashes
C)
Scalar
D)
All of the above.

Correct Answer : Option (C) :   Scalar

A)
List
B)
Void
C)
Boolean
D)
Scalar

Correct Answer : Option (C) :   Boolean


Explanation : Boolean context is simply any place where an expression is being evaluated

A)
join EXPR, LIST
B)
sort EXPR, LIST
C)
split EXPR, LIST
D)
splice EXPR, LIST

Correct Answer : Option (A) :   join EXPR, LIST


Explanation : This function joins the separate strings of LIST into a single string with fields separated by the value of EXPR, and returns the string.

A)
seek
B)
getc
C)
close
D)
None of the above.

Correct Answer : Option (B) :   getc


Explanation : The getc function returns a single character from the specified FILEHANDLE, or STDIN if none is specified.

A)
local
B)
my
C)
state
D)
None of the above.

Correct Answer : Option (A) :   local


Explanation : The local is used when the current value of a variable must be visible to called subroutines.

A)
..
B)
--
C)
++
D)
->

Correct Answer : Option (D) :   ->


Explanation : -> − The arrow operator is mostly used in dereferencing a method or variable from an object or a class name.

A)
qq{ }
B)
qx{ }
C)
q{ }
D)
enclose{}

Correct Answer : Option (C) :   q{ }


Explanation : q{ } − Encloses a string with-in single quotes.

A)
values
B)
keys
C)
Both of the above.
D)
None of the above.

Correct Answer : Option (B) :   keys


Explanation : keys − You can get a list of all of the keys from a hash by using keys function.