Coding interview preparation
5.75K subscribers
331 photos
47 files
163 links
Download Telegram
Which of the following is a correct identifier in C++?
Anonymous Quiz
9%
7var_name
8%
7VARNAME
58%
VAR_1234
25%
$var_name
What is the time complexity to count the number of elements in the linked list?
Anonymous Quiz
15%
O(1)
64%
O(n)
17%
O(logn)
4%
O(n2)
Tools used by Data Engineers
Fundamental skills you need to become
Is SimpleDateFormat thread safe?
Anonymous Quiz
69%
True
31%
False
Is there any difference in the below declarations?
Anonymous Quiz
81%
Yes
19%
No
Which of the following is called address operator?
Anonymous Quiz
17%
*
72%
&
6%
_
5%
%
What is the space complexity for deleting a linked list?
Anonymous Quiz
21%
O(1)
43%
O(n)
26%
Either O(1) or O(n)
11%
O(logn)
Which one of the following utilize the CPU cycles in a massive manner?
Anonymous Quiz
51%
GUI (Graphic User Interface)
11%
Statically generated graphics
5%
Generic scoping
33%
Dynamically generated graphics
Explanation:
The term "Dynamic generated graphic" refers to simulate movement, motion, or generating a specific environment using the computer. It can also be thought of as multiple plots associated with time. Hence the graphics generated in the dynamic manner from the real time data utilize the huge part of the CPU cycles.
Explanation:
The statement typedef char (*(*arrfptr[4])())[20]; means arfptr is an array of 3 function pointer which will return an array of 20 dimension whose data type is char.
Therefore 'x' is an array of three function pointers.
Which of the following is used for comments in C++?
Anonymous Quiz
21%
// comment
23%
/* comment */
54%
both // comment or /* comment */
2%
// comment */
Explanation:
To implement file system, for separate chaining in hash-tables and to implement non-binary trees linked lists are used. Elements are accessed sequentially in linked list. Random access of elements is not an applications of linked list.
In JavaScript, what kind of scoping is used?
Anonymous Quiz
13%
Literal scoping
31%
Sequential scoping
23%
Segmental scoping
32%
Lexical scoping
Explanation:
In JavaScript, the lexical scoping is used just like many other modern languages.This means a function gets executed using the scope chain which was in effect, when they are defined instead of variable scope which was in effect when they are invoked/called.