Programming Languages: History and Java Basics

A quiz covering the history and inventors of various programming languages (LISP, FORTRAN, Pascal, Visual Basic, Java, Lua, Haskell, Ada, SQL, ALGOL, COMTRAN) along with basic Java programming concepts including operators, string concatenation, generics, and the String class.

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Which year the COMTRAN language invented ?

  1. 1957
  2. 1951
  3. 1954
  4. 1965
Question 2 Multiple Choice (Single Answer)

Which year the ALGOL 58 language invented ?

  1. 1958
  2. 1968
  3. 1948
  4. 1978
Question 3 Multiple Choice (Single Answer)

Which year the SQL language invented ?

  1. 1972
  2. 1971
  3. 1978
  4. 1974
Question 4 Multiple Choice (Single Answer)

Which year the Ada language invented ?

  1. 1972
  2. 1971
  3. 1983
  4. 1974
Question 5 Multiple Choice (Single Answer)

Which year the Haskell language invented ?

  1. 1955
  2. 1990
  3. 1983
  4. 1964
Question 6 Multiple Choice (Single Answer)

Which year the Lua language invented ?

  1. 1959
  2. 1993
  3. 1972
  4. 1970
Question 7 Multiple Choice (Single Answer)

What is the value of z? double z = 7 / (3 + 0.5);

  1. 0.5
  2. 2
  3. 2.83333333
  4. 3
Question 8 Multiple Choice (Single Answer)

A String Class

  1. is final
  2. is public
  3. is serializable
  4. has a constructor which takes a StingBuffer Object as an Argument
Question 9 Multiple Choice (Single Answer)

What is the value of a? int a = 7; int b = 4; a = b; a = a + 1;

  1. 4
  2. 5
  3. 7
  4. 8
Question 10 Multiple Choice (Single Answer)

What output will the following line produce? System.out.println("The answer is: "+17+3);

  1. 20
  2. 17+3
  3. 173
  4. CompileTime Error
Question 11 Multiple Choice (Single Answer)

What is the value of x? int x = 8 / 3;

  1. 1
  2. 2
  3. 2.66666667
  4. 3
Question 12 Multiple Choice (Single Answer)

What is the value of y? int y = 19 % 4;

  1. 2
  2. 3
  3. 4
  4. 4.75
Question 13 True/False

It is preferable to write List dogs = new ArrayList(); instead of List dogs = new ArrayList();

  1. True
  2. False
Question 14 Multiple Choice (Single Answer)

Who is the inventor of FORTRAN language ?

  1. John Backus
  2. John McCarthy
  3. Alan Cooper
  4. Edsger W. Dijkstra
Question 15 Multiple Choice (Single Answer)

Who is the inventor of LISP language ?

  1. John McCarthy
  2. John Backus
  3. Alan Cooper
  4. Edsger W. Dijkstra
Question 16 Multiple Choice (Single Answer)

Who developed the Oak, the precursor of Java ?

  1. James Gosling
  2. Edsger W. Dijkstra
  3. John McCarthy
  4. Alan Cooper
Question 17 Multiple Choice (Single Answer)

Who developed Turbo Pascal and C# ?

  1. Bill Joy
  2. Dennis Ritchie
  3. Anders Hejlsberg
  4. Ken Thompson
Question 18 Multiple Choice (Single Answer)

Who is the inventor of Pascal language ?

  1. Edsger W. Dijkstra
  2. John McCarthy
  3. Niklaus Wirth
  4. John von Neumann
Question 19 Multiple Choice (Single Answer)

Who is the inventor of Visual Basic language ?

  1. Alan Cooper
  2. Edsger W. Dijkstra
  3. John McCarthy
  4. John Backus
Question 20 Multiple Choice (Single Answer)

Who developed the framework for proper programming ?

  1. Edsger W. Dijkstra
  2. John McCarthy
  3. Alan Cooper
  4. James Gosling