What would be the asymptotic time complexity to add a node at the end of singly linked list, if the pointer is initially pointing to the head of the list?
Anonymous Quiz
23%
O(1)
59%
O(n)
13%
θ(n)
5%
θ(1)
👍1👏1😁1
Which one of the following given task is performed by the "pop()" method of the array in JavaScript?
Anonymous Quiz
8%
It updates the element of the array
5%
it increments the total length of the array by 1
14%
It prints the first element and made no impact on the length of the array
73%
updates the element removes one element of an array on each time the "pop()" function called
👍2❤1😁1
😱3
What is the value returned by strcmp() function when two strings are the equal in C language?
Anonymous Quiz
9%
2
44%
1
41%
0
6%
Error
What will be the output of the C++ code?
Anonymous Quiz
28%
30
25%
Error
24%
Segmentation fault
24%
870
😁2👍1
What would be the asymptotic time complexity to insert an element at the front of the linked list (head is known)?
Anonymous Quiz
53%
O(1)
36%
O(n)
9%
O(n2)
2%
O(n3)
What will be the output of the JavaScript code?
Anonymous Quiz
5%
1, 2, 3
15%
Error
74%
It will concatenate both the stings and print as 1, 2, 3, 4, 5, 6, 7, 8, 9 ,10
6%
It will print nothing
👍1
👍2😁1
Which function disconnects the stream from a file pointer in C language?
Anonymous Quiz
55%
fclose()
15%
fremove()
11%
remove()
19%
file pointer set to NULL
👍2