Tag: programming languages

Questions Related to programming languages

The following are only recognized in white space programming

  1. Space, tabs, hashes

  2. Space & tabs

  3. Hashes & spaces

  4. Special characters

  5. None of the above


Correct Option: E
  1. Spaces, tabs & linefeeds

  2. Kernel

  3. Haskell

  4. Nutshell


Correct Option: C
  1. Decimal

  2. Hexadecimal

  3. Octadecimal

  4. Binary

  5. None of the above


Correct Option: D

import java.util.*; class GFC118 { public static void main (String[] args) { Object i = new ArrayList().listIterator(); System.out.print((i instanceof List)+","); System.out.print((i instanceof Iterator)+","); System.out.print(i instanceof ListIterator); }} What is the result of attempting to compile and run the program?

  1. Prints: false,false,false

  2. Prints: false,true,false

  3. Prints: false,true,true

  4. Prints: true,true,false

  5. Prints: true,true,true


Correct Option: C

• Stores key/value pairs. • Duplicate entries replace old entries. • Provides constant-time performance for the add, contains and remove operations. Which of these classes provides the specified features?

  1. LinkedHashMap

  2. LinkedHashSet

  3. TreeSet

  4. HashMap

  5. HashSet

  6. Hashtable


Correct Option: A,D,F
  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