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.
Questions
Which year the COMTRAN language invented ?
- 1957
- 1951
- 1954
- 1965
Which year the ALGOL 58 language invented ?
- 1958
- 1968
- 1948
- 1978
Which year the SQL language invented ?
- 1972
- 1971
- 1978
- 1974
Which year the Ada language invented ?
- 1972
- 1971
- 1983
- 1974
Which year the Haskell language invented ?
- 1955
- 1990
- 1983
- 1964
Which year the Lua language invented ?
- 1959
- 1993
- 1972
- 1970
What is the value of z? double z = 7 / (3 + 0.5);
- 0.5
- 2
- 2.83333333
- 3
A String Class
- is final
- is public
- is serializable
- has a constructor which takes a StingBuffer Object as an Argument
What is the value of a? int a = 7; int b = 4; a = b; a = a + 1;
- 4
- 5
- 7
- 8
What output will the following line produce? System.out.println("The answer is: "+17+3);
- 20
- 17+3
- 173
- CompileTime Error
What is the value of x? int x = 8 / 3;
- 1
- 2
- 2.66666667
- 3
What is the value of y? int y = 19 % 4;
- 2
- 3
- 4
- 4.75
It is preferable to write List dogs = new ArrayList(); instead of List dogs = new ArrayList();
- True
- False
Who is the inventor of FORTRAN language ?
- John Backus
- John McCarthy
- Alan Cooper
- Edsger W. Dijkstra
Who is the inventor of LISP language ?
- John McCarthy
- John Backus
- Alan Cooper
- Edsger W. Dijkstra
Who developed the Oak, the precursor of Java ?
- James Gosling
- Edsger W. Dijkstra
- John McCarthy
- Alan Cooper
Who developed Turbo Pascal and C# ?
- Bill Joy
- Dennis Ritchie
- Anders Hejlsberg
- Ken Thompson
Who is the inventor of Pascal language ?
- Edsger W. Dijkstra
- John McCarthy
- Niklaus Wirth
- John von Neumann
Who is the inventor of Visual Basic language ?
- Alan Cooper
- Edsger W. Dijkstra
- John McCarthy
- John Backus
Who developed the framework for proper programming ?
- Edsger W. Dijkstra
- John McCarthy
- Alan Cooper
- James Gosling