Which of the following is false about a doubly linked list?
Anonymous Quiz
10%
We can navigate in both the directions
19%
It requires more space than a singly linked list
24%
The insertion and deletion of a node take a bit longer
47%
Implementing a doubly linked list is easier than singly linked list
Explanation:
A doubly linked list has two pointers ‘left’ and ‘right’ which enable it to traverse in either direction. Compared to singly liked list which has only a ‘next’ pointer, doubly linked list requires extra space to store this extra pointer. Every insertion and deletion requires manipulation of two pointers, hence it takes a bit longer time. Implementing doubly linked list involves setting both left and right pointers to correct nodes and takes more time than singly linked list.
A doubly linked list has two pointers ‘left’ and ‘right’ which enable it to traverse in either direction. Compared to singly liked list which has only a ‘next’ pointer, doubly linked list requires extra space to store this extra pointer. Every insertion and deletion requires manipulation of two pointers, hence it takes a bit longer time. Implementing doubly linked list involves setting both left and right pointers to correct nodes and takes more time than singly linked list.
Which one of the following can be considered as the opposite approach of the Lexical Scoping?
Anonymous Quiz
50%
Dynamic scoping
20%
Literal scoping
15%
Static scoping
16%
Generic scoping
Explanation:
The dynamic scoping can be considered as the opposite approach to the lexical scoping. In the dynamic scoping, it does not matter that how the code is written but what matters is how's the code executes. At the time of execution of every new function, a new scope associated with it gets pushed onto the stack and this scope normally stored along with the function call stack.At that point, when a variable is referenced in a function's definition, the scope is immediately checked in every call stack to know if it returns a value.
The dynamic scoping can be considered as the opposite approach to the lexical scoping. In the dynamic scoping, it does not matter that how the code is written but what matters is how's the code executes. At the time of execution of every new function, a new scope associated with it gets pushed onto the stack and this scope normally stored along with the function call stack.At that point, when a variable is referenced in a function's definition, the scope is immediately checked in every call stack to know if it returns a value.
How is Date stored in database in java?
Anonymous Quiz
26%
java.sql.Date
29%
java.util.Date
21%
java.sql.DateTime
24%
java.util.DateTime