100+ Programming for Problem Solving Solved MCQs

101.

() is used for _________

A. function body
B. Arguments
C. Return type
D. Declaration of function
Answer» B. Arguments
102.

which is better memory allocation when size is not known

A. static
B. dynamic
C. both
D. neither
Answer» B. dynamic
103.

which of the following is the best for getting a string with space from the standard input

A. gets
B. getc
C. fgets
D. puts
Answer» C. fgets
104.

Which statement is used to compare the two strings?

A. strcmp
B. strcompare
C. stringcompare
D. str_cmp
Answer» A. strcmp
105.

void main()
{
printf();
}

A. Run-Time Error
B. Compile-Time Error
C. none
D. all
Answer» B. Compile-Time Error
Tags
Question and answers in Programming for Problem Solving, Programming for Problem Solving multiple choice questions and answers, Programming for Problem Solving Important MCQs, Solved MCQs for Programming for Problem Solving, Programming for Problem Solving MCQs with answers PDF download