Top 50+ Solved C Programming Basic MCQ Questions Answer
Q. The _______ memory allocation function modifies the previous allocated space.
a. calloc
b. free
c. malloc
d. realloc
Q. The "C" language is
a. context free language
b. context sensitive language
c. regular language
d. none of the above
Q. The worst case time complexity of AVL tree is better in comparison to binary search tree for
a. search and insert operations
b. search and delete operations
c. insert and delete operations
d. search, insert and delete operations
Q. In which tree, for every node the height of its left subtree and right subtree differ almost by one?
a. binary search tree
b. avl tree
c. threaded binary tree
d. complete binary tree
Q. The Default Parameter Passing Mechanism is called as
a. call by value
b. call by reference
c. call by address
d. call by name
Q. What is Dequeue?
a. elements can be added from front
b. elements can be added to or removed from either the front or rear
c. elements can be added from rear
d. none of the above
Q. In which linked list last node address is null?
a. doubly linked list
b. circular list
c. singly linked list
d. none of the above
Q. Which is the correct syntax to declare constant pointer?
a. int *const constptr;
b. *int constant constptr;
c. const int *constptr;
d. a and c both
Q. printf("%d%d", book.price, book.page);
a. b. printf("%d%d", price.book, page.book);
b. .
c. printf("%d%d", price::book, page::book);
d. printf("%d%d", price->book, page->book);
Q. A. The smallest individual units of c program
a. b. the basic element
b. ecognized by the compiler
c. the largest individual units of program
d. a & b both
Q. B. Keywords have some unknown meanings and these meanings cannot be
a. changed.
b. . keywords have some predefine meanings and these meanings cannot be
c. hanged.
d. none of the above
Q. B. Constants have fixed values that change during the execution
a. of a program
b. . constants have unknown values that may be change during the execution
c. of a program
d. none of the above