Coding interview preparation
5.75K subscribers
330 photos
47 files
163 links
Download Telegram
Select the correct statement which is a combination of these two statements.
Statement 1: p= (char*) malloc(100);
Statement 2: char *p;
Anonymous Quiz
56%
char *p = (char*)malloc(100);
31%
char *p = (char) malloc(100);
9%
char p = *malloc(100);
4%
None
Which of the following escape sequence represents carriage return?
Anonymous Quiz
37%
\r
27%
\n
21%
\n\r
15%
\c
What is the worst case time complexity of inserting a node in a doubly linked list?
Anonymous Quiz
30%
O(nlogn)
18%
O(logn)
37%
O(n)
15%
O(1)
Which of these is long data type literal?
Anonymous Quiz
36%
0x99fffL
16%
ABCDEFG
26%
0x99fffa
23%
99671246
For the below mention C statement, what is your comment?
signed int *p=(int*)malloc(sizeof(unsigned int));
Anonymous Quiz
22%
Would throw Runtime error
32%
Improper typecasting
28%
int value in the memory
18%
No problem with the statement
Which of the following escape sequence represents tab?
Anonymous Quiz
81%
\t
11%
\t\r
6%
\b
3%
\a
Explanation:
In a normal linked list, the ‘next’ pointer of the last node points to null. However, in a circular linked list, the ‘next’ pointer of the last node points to the head (first element) of the list. Every node in a circular linked list can be a starting point(head).
How does Docker Work?
End to End ML Project
DevOps Engineering
Kubernetes
Machine Learning Roadmap
Types Of Databases
Linux Boot Process
SQL Query Structure
System Design Basics