0

programming languages Online Quiz - 22

Description: programming languages Online Quiz - 22
Number of Questions: 20
Created by:
Tags: programming languages
Attempted 0/20 Correct 0 Score 0
  1. Dennis Ritchie

  2. Edsger Dijkstra

  3. James Gosling

  4. Louis Pasteur


Correct Option: C

Commonly used metasyntactic variable names are

  1. Hello and world

  2. Foo and Bar

  3. i and j

  4. int and float


Correct Option: B

Amoeba operating system was developed by

  1. Linus Torvalds

  2. Dennis Ritchie

  3. Sun Microsystems

  4. Andrew S. Tanenbaum


Correct Option: D

SQL was developed by

  1. Donald D. Chamberlin and Raymond F. Boyce

  2. Donald D. Chamberlin

  3. Raymond F. Boyce

  4. none


Correct Option: A
  1. Modifying existing Data type.

  2. Used for defining type of data type used.

  3. Creating new data type names

  4. Not a valid key word


Correct Option: A

"typedefs" used for data types are not machine dependent.

  1. True

  2. False


Correct Option: B

In the code below, what data types the variable x can have? byte b1 = 5; byte b2 = 10; x = b1 * b2;(A) byte (B) int (C) short (D) long (E) float (F) double

  1. (A), (B), (D) & (E)

  2. (B), (C) & (D)

  3. (B), (D), (E) & (F)

  4. (B), (D) & (E)

  5. (D) & (F)


Correct Option: C
  1. Locale loc = Locale.getLocale();System.out.println(loc.getDisplayCountry()+ “ “+ df.format(d));

  2. Locale loc = Locale.getDefault();System.out.println(loc.getDisplayCountry()+ “ “ + df.format(d));

  3. Locale bc = Locale.getLocale();System.out.println(loc.getDisplayCountry()+ “ “+ df.setDateFormat(d));

  4. Locale loc = Locale.getDefault();System.out.println(loc.getDispbayCountry()+ “ “+ df.setDateFormat(d));


Correct Option: B
  1. Enables you to cycle through a collection in the forward direction only, for obtaining or removing elements

  2. just for loop

  3. while loop

  4. It is an class for storing objects


Correct Option: A
  1. The Set interface

  2. list stores elements in an ordered way but may contain duplicate elements

  3. List interface provides support for ordered collections of objects.

  4. All of the above


Correct Option: C
  1. Array: can store primitive ArrayList: Stores object only

  2. Array: fix size ArrayList: resizable

  3. Array: can have multi dimensional ArrayList: can have multi dimensional

  4. Array: lang ArrayList: Collection framework


Correct Option: A,B,D
  1. AbstractList

  2. List

  3. Array

  4. All of the Above


Correct Option: A

What are the constructors of ArrayList?

  1. ArrayList( )

  2. ArrayList(Collection c)

  3. ArrayList(int capacity)

  4. All of the Above


Correct Option: D
  1. Class

  2. Interface

  3. Abstract Class

  4. All of the above


Correct Option: A
- Hide questions