perl - A General Purpose Tool - 2 Online Exam Quiz

perl - A General Purpose Tool - 2 GK Quiz. Question and Answers related to perl - A General Purpose Tool - 2. MCQ (Multiple Choice Questions with answers about perl - A General Purpose Tool - 2

___ function is used for joining lists.

Options

A : foreach

B : for

C : split

D : join

View Answer

___ is known as range operator.

Options

A : . .

B : 1

C : $.

D : $_

View Answer

___ operator is used for selecting current line number.

Options

A : 0

B : 1

C : $.

D : $_

View Answer

For deleting the elements from the left of the array ___ function is used.

Options

A : pop

B : push

C : queue

D : shift

View Answer

For deleting the elements from the right of the array ___ function is used.

Options

A : pop

B : push

C : queue

D : shift

View Answer

For looping in a list, __ is used.

Options

A : for

B : fordo

C : foreach

D : while

View Answer

For splitting a line or expression into fields, __ is used.

Options

A : foreach

B : for

C : split

D : join

View Answer

perl is __ of grep, tr, sed and awk.

Options

A : subset

B : superset

C : child

D : parent

View Answer

The ___ prefix to an array name signifies the last index of the array.

Options

A : 0

B : $#

C : #$

D : $_

View Answer

The command @x=(1. .10) will assign first ten integer values to the array 'a'.

Options

A : TRUE

B : FALSE

C : -

D : -

View Answer

perl - A General Purpose Tool - 2 more Online Exam Quiz

Triangulation - Satellite Station: Reduction to Centre

Steam Nozzles - Super Saturated Flow and Wilson's Line

Energy Equation-3

Strategy for implementing Performance Measures

Traffic Volume Studies - AADT and ADT

Vectors and Cloning in Gram - Positive Bacteria - 3

Entity and Its Declaration

Coding the Application Using Pseudocode and Flowchart

Removal of Iron, Manganese and Arsenic - 2