Top 50+ Solved C Programming Basic MCQ Questions Answer

From 31 to 45 of 48

Q. The _______ memory allocation function modifies the previous allocated space.

a. calloc

b. free

c. malloc

d. realloc

  • d. realloc

Q. Number of binary trees formed with 5 nodes are

a. 30

b. 36

c. 108

d. 42

  • d. 42

Q. The "C" language is

a. context free language

b. context sensitive language

c. regular language

d. none of the above

  • a. context free language

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

  • 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

  • b. avl tree

Q. C is ______ Language?

a. low level

b. high level

c. assembly level

d. machine level

  • a. low level

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

  • a. call by value

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

  • b. elements can be added to or removed from either the front or rear

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

  • c. singly linked list

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

  • 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);

  • a. b. printf("%d%d", price.book, page.book);

Q. A. double and chars

a. b. floats and doubles

b. . ints

c. and floats

d. ints and chars

  • d. ints and chars

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

  • 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

  • c. hanged.

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

  • a. of a program
Subscribe Now

Get All Updates & News