Home / Uday Singh / Programming Language MCQs
Total questions: 96
Q. Which maintains insertion order?
Q. Which of these maintains insertion order?
Q. Which of these is sorted by default
Q. Complexity of ArrayList get method
Q. Which of these helps insert elements at a specific position in a collection?
Q. concurrentSkipListMap permits
Q. Which Map is synchronized?
Q. What will be the output of the following code –
Q. TreeMap
Q. Which Set implementation is sorted and synchronized?
Q. Iterator returned by ConcurrentSkipListMap on key, value and entry is?
Q. Iterator returned by TreeMap on key, value and entry is?
Q. Iterator returned by LinkedHashMap on key, value and entry is?
Q. Iterator returned by ConcurrentHashMap on key, value and entry is?
Q. Iterator returned by Hashtable on key, value and entry are?
Q. In ListIterator, when a call to next() or previous(), if a call is made to set(E element) followed by add() or remove() what happens?
Q. Which of these is synchronised and isn’t sorted by natural order?
Q. Which of those is synchronized and does not allow null elements?
Q. An attempt to add null key to a TreeMap will result in
Q. What will Collections.sort internally uses when number of elements are less than 7?
Q. The Comparator interface contains the method?
Q. How are you able to sort given HashMap on basis of values
Q. Hashtable permits
Q. LinkedHashMap permits
Q. Enumeration returned by ArrayList is
Q. TreeSet maintains which order?
Q. An attempt to add the null key to a TreeSet will result in:
Q. HashSet internally uses?
Q. TreeSet internally uses that one to store elements?
Q. In Iterator, hasMoreElements() method of Enumeration has been changed to
Q. How many types of comments are there in c++?
Q. What is a comment in c++?
Q. What type of comments does c++ support?
Q. What is the output of this program?
Q. What is used to write multi line comment in c++?
Q. What is the use of the indentation in c++?
Q. Choose the correct formatted code.
Q. Which function allows you to set minimum width for the next input?
Q. What is the use of the function “showbase”?
Q. Which of the following property sets the background image to scroll or not to scroll with its associated element’s content?
Q. Which of the following property sets an element’s background color?
Q. Which of the following property defines a shadow color for the right and bottom edges of a scroll bar?
Q. Which of the following property defines a color for the right and bottom edges of a scroll bar.
Q. Which of the following is set for horizontal offset of the shadow?
Q. Which of the following is used for spread radius?
Q. What changes the shadow from an outer shadow?
Q. What scales the background image as large as possible?
Q. Which property specifies where the background image is positioned?
Q. Which property specifies the painting area of the background?
Q. Which of the following will show a pop-up window that breaks into pieces once clicked?
Q. Which of the following comes with a smooth full screen overlay effect?
Q. Which of the following will display a speech bubble pop-up?
Q. Which of the following will give a minimalist entrance effect on hover?
Q. What should be added to create a horizontal menu?
Q. Which of the following name should be added to mark a link as disabled?
Q. How many ways of passing a parameter are there in c++?
Q. Which is used to keep the call by reference value as intact?
Q. By default how the value are passed in c++?
Q. What is the new value of P?
Q. What will happen when we use void in argument passing?
Q. If the user did not supply the value, what value will it take?
Q. Where can the default parameter be placed by the user?
Q. Which value will it take when both user and default values are given?
Q. What we can’t place followed by the non-default arguments?
Q. If we start our function call with default arguments means, what will be proceeding arguments?
Q. What is the default return type of a function?
Q. Which header file is used to pass unknown number of arguments to function?
Q. How can you access the arguments that are manipulated in the function?
Q. What is the maximum number of arguments or parameters that can be present in one function call?
Q. Which header file should you include if you are to develop a function that can accept variable number of arguments?
Q. What will initialize the list of arguments in stdarg.h header file?