C PROGRAM QUESTIONS : PART 29
Which of the following data structure is linear type?
Strings
Queue
Lists
All of the above
SHOW ANSWER
The statement printf("%c", 100); will print?
prints 100
print garbage
prints ASCII equivalent of 100
None of the above
prints ASCII equivalent of 100
SHOW ANSWER
The _______ memory allocation function modifies the previous allocated space.
calloc
free
malloc
realloc
SHOW ANSWER
Number of binary trees formed with 5 nodes are
30
36
108
42
SHOW ANSWER
The "C" language is
Context free language
Context sensitive language
Regular language
None of the above
SHOW ANSWER
The worst case time complexity of AVL tree is better in comparison to binary search tree for
Search and Insert Operations
Search and Delete Operations
Insert and Delete Operations
Search, Insert and Delete Operations
Search, Insert and Delete Operations
SHOW ANSWER
In which tree, for every node the height of its left subtree and right subtree differ almost by
one?
Binary search tree
Threaded Binary Tree
Complete Binary Tree
SHOW ANSWER
The Default Parameter Passing Mechanism is called as
Call by Value
Call by Reference
Call by Address
Call by Name
SHOW ANSWER
What is Dequeue?
Elements can be added from front
Elements can be added to or removed from either the front or rear
Elements can be added from rear
None of the above
Elements can be added to or removed from either the front or rear
SHOW ANSWER
In which linked list last node address is null?
Doubly linked list
Circular list
Singly linked list
None of the above
SHOW ANSWER
Which is the correct syntax to declare constant pointer?
int *const constPtr;
*int constant constPtr;
const int *constPtr;
A and C both
SHOW ANSWER
More C Language Multiple Choice Questions: Click Here
1. What will be the output of the following arithmetic expression ?
5+3*2%10-8*6
-37
-42
-32
-28
SHOW ANSWER
What will be the output of the following statement ?
int a=10; printf("%d &i",a,10);
error
10
10 10
none of these
SHOW ANSWER