Top 150+ Solved Programming for Problem Solving MCQ Questions Answer

From 76 to 90 of 105

Q. () is used for _________

a. function body

b. Arguments

c. Return type

d. Declaration of function

  • b. Arguments

Q. which is better memory allocation when size is not known

a. static

b. dynamic

c. both

d. neither

  • b. dynamic

Q. Which statement is used to compare the two strings?

a. strcmp

b. strcompare

c. stringcompare

d. str_cmp

  • a. strcmp

Q. void main(){printf();}

a. Run-Time Error

b. Compile-Time Error

c. none

d. all

  • b. Compile-Time Error

Q. What is maximum dimension that array can have in c programming?

a. 2

b. 4

c. Theoretically No Limit but practically limit depends on memory

d. 3

  • c. Theoretically No Limit but practically limit depends on memory

Q. Array is an example of _______ type memory allocation.

a. Compile Time

b. Run Time

c. none

d. all

  • a. Compile Time

Q. Array is ______ data type in C Programming language.

a. Custom Data Type

b. Primitive Data Type

c. None of these

d. Derived Data Type

  • d. Derived Data Type

Q. What will happen if in a C program you assign a value to an array element whose subscript exceeds the size of array?

a. The element will be set to 0.

b. The compiler would report an error.

c. The array size would appropriately grow.

d. The program may crash if some important data gets overwritten.

  • d. The program may crash if some important data gets overwritten.

Q. If you pass an array as an argument to a function, what actually gets passed?

a. Base address of the array

b. Value of elements in array

c. First element of the array

d. Address of the last element of array

  • a. Base address of the array

Q. Pointer is special kind of variable which is used to store __________ of the variable.

a. Address

b. Value

c. Variable Name

d. Data Type

  • a. Address

Q. Address stored in the pointer variable is of type __________.

a. Integer

b. Array

c. Floating

d. Character

  • a. Integer
Subscribe Now

Get All Updates & News