0

programming languages Online Quiz - 308

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

Source code is written in

  1. Spaces, tabs & linefeeds

  2. Kernel

  3. Haskell

  4. Nutshell


Correct Option: C

Which other programming language uses whitespace syntax

  1. Java

  2. Cobra

  3. VC++

  4. Python


Correct Option: D
  1. Decimal

  2. Hexadecimal

  3. Octadecimal

  4. Binary

  5. None of the above


Correct Option: D
  1. Compiled

  2. Interpreted

  3. Both

  4. None


Correct Option: B
  1. All implementations of the List interface provide fast random access.

  2. A LinkedList provides faster random access than an ArrayList.

  3. The LinkedList implements the RandomAccess interface.

  4. The RandomAccess interface declares the next and hasNext methods.

  5. None of the above.


Correct Option: E
  1. Henry Spencer

  2. Larry B

  3. Larry Wall

  4. Jhon


Correct Option: C

Perl Expanded as_______________?

  1. Practically Extracted Reporting Language

  2. Practical Extraction report Language

  3. Practical Extraction and report Language

  4. Practical Export and report Language


Correct Option: C

Perl is slower than sed and awk

  1. True

  2. False


Correct Option: B

An interpreted language like perl is never execute as fast as a compiled language.

  1. True

  2. False


Correct Option: A

Perl is Written to be Practical. It means it is..?

  1. Complete

  2. Easy to use

  3. Efficient

  4. Not agreed with above three


Correct Option: A,B,C

The most popular use Perl is generating webpage dynamically

  1. True

  2. False


Correct Option: A

class SRC104 { public static void main (String[] args) { System.out.print(Math.round(Float.NaN)); }} What is the result of attempting to compile and run the program?

  1. Prints: NaN

  2. Prints: 0.0

  3. Prints: 0

  4. Compile-time error

  5. Run-time error


Correct Option: C

class D { public static void main (String args[]) { Byte a = new Byte("1"); byte b = a.byteValue(); short c = a.shortValue(); char d = a.charValue(); int e = a.intValue(); long f = a.longValue(); float g = a.floatValue(); double h = a.doubleValue(); System.out.print(b+c+d+e+f+g+h); }} What is the result of attempting to compile and run the program?

  1. Prints: 7

  2. Prints: 7.0

  3. Compile-time error

  4. Run-time error

  5. None of the above


Correct Option: C
- Hide questions