0

programming languages Online Quiz - 219

Description: programming languages Online Quiz - 219
Number of Questions: 20
Created by:
Tags: programming languages
Attempted 0/20 Correct 0 Score 0

Running your Perl scripts with a d switch will perform which task?

  1. Invoke the Perl debugger

  2. Disable the Perl debugger

  3. Disable breakpoints

  4. Display a stack trace


Correct Option: A
  1. With the #include preprocessor command

  2. Adding the file’s directory to @INC and then passing the filename to require.

  3. Both A & B

  4. None


Correct Option: C
  1. grep(! /^ !/, @array);

  2. Every non empty list element

  3. Every list element that does not start with an exclamation mark.

  4. Every list element.


Correct Option: B

What is the default sort order in Perl?

  1. alphabetic

  2. numeric

  3. ASCII

  4. none of the above


Correct Option: C

Which of the following will call a subroutine named "mom"?

  1. &mom

  2. $mom

  3. mom$

  4. %mom%


Correct Option: A

Within a loop, which operator jumps to the end of the loop but does not exit the loop?

  1. next

  2. last

  3. redo

  4. leave


Correct Option: A

To convert a timestamp into a format more readable by a user, which function should you use?

  1. bitwise

  2. localtime

  3. translate

  4. transform


Correct Option: B

Which command should be used to close the filehandle KAREN?

  1. close KAREN "sw";

  2. KAREN close;

  3. close KAREN;

  4. close &KAREN


Correct Option: C
- Hide questions