Programming Languages History and Concepts
A quiz covering the invention years of various programming languages along with concepts from Java collections and C programming syntax
Questions
What will be the output of the following program : void main() { char str[]="C For Swimmers"; printf("%d",sizeof str); }
- 14
- Compile-Time Error
- 15
- None of the above
What will be the output of the following program : void main() { printf("%d",!(100==100)+1); }
- 100
- 0
- 1
- 2
What will be the output of the following program : void main() { int x=5,y=6,z=2; z/=y/z==3?y/z:x*y; printf("%d",z); }
- 0
- 1
- 2
- Compile Time Error
What will be the output of the following program : void main() { printf("%d %d %d",5,!5,25-!25); }
- 500 100 30 40 4
- Run-Time Error
- 300 -200 300 10 4
- 700 200 300 10 4
It is not possible to make a hashmap synchronized. True/False?
- True
- False
Map is an interface which extends Collection interface?
- True
- False
ListIterator is an implementation of the Iterator interface. True/False
- True
- False
which of the following is correct?
- java.util.Collection
- java.lang.Collection
- java.util.Collections
- java.lang.Collections
Which of the following is true?
- Stack is a data structure that is based on First-in-First-Out (FIFO) rule
- Queues are based on Last-In-First-Out (LIFO) rule
- Neither (a) nor (b)
- Both (a) and (b)
Which of the following are true about Sets?
- Sets can contain null elements
- Sets can contain duplicate elements
- Set can contain atmost only one null element
- It contains an iterator() method
Which year the Regional Assembly language invented ?
- 1951
- 1957
- 1962
- 1960
Which year the LISP language invented ?
- 1958
- 1968
- 1948
- 1978
Which year the FACT language invented ?
- 1959
- 1968
- 1948
- 1978
Which year the COBOL language invented ?
- 1965
- 1953
- 1983
- 1959
Which year the APL language invented ?
- 1952
- 1953
- 1975
- 1962
Which year the Simula language invented ?
- 1954
- 1953
- 1961
- 1962
Which year the BASIC language invented ?
- 1955
- 1963
- 1983
- 1964
Which year the PL/I language invented ?
- 1957
- 1962
- 1963
- 1964
Which year the Pascal language invented ?
- 1958
- 1960
- 1971
- 1970
Which year the Prolog language invented ?
- 1965
- 1960
- 1972
- 1970