What will be the output of the following Java code snippet?
Anonymous Quiz
17%
Runtime Error
24%
Compilation Error
32%
It runs successfully
27%
EnumNotDefined Exception
What is the output of below program?
Anonymous Quiz
8%
Print 1
15%
Print 10
40%
Print 20
37%
Compile error
What will be the output of the following C++ program?
Anonymous Quiz
12%
Sanfoundry!
21%
Sanfoundry!.
20%
Sanfoundry.
47%
Sanfoundry.!
❤1
The concatenation of two lists can be performed in O(1) time. Which of the following variation of the linked list can be used?
Anonymous Quiz
27%
Singly linked list
33%
Doubly linked list
23%
Circular doubly linked list
17%
Array implementation of list
👍1
Explanation: We can easily concatenate two lists in O (1) time using singly or doubly linked list, provided that we have a pointer to the last node at least one of the lists. But in case of circular doubly linked lists, we will break the link in both the lists and hook them together. Thus circular doubly linked list concatenates two lists in O (1) time.
Which one of the following code is equivalent to call a function "x" of the class "a" which have two arguments g and h?
Anonymous Quiz
46%
a,x(g,h);
27%
x(g) &&a.x(g);
21%
x(a,g);
5%
(g,h);
What will be the output of the following Java code snippet?
Anonymous Quiz
11%
Runtime Error
26%
EnumNotDefined Exception
33%
It runs successfully
30%
Compilation Error
The C library function rewind() is used for re-position the file pointer at the beginning of the file.
Anonymous Quiz
83%
True
17%
False