Programming For Problem Solving Set 5

On This Page

This set of Programming for Problem Solving Multiple Choice Questions & Answers (MCQs) focuses on Programming For Problem Solving Set 5

Q1 | () is used for _________
  • function body
  • Arguments
  • Return type
  • Declaration of function
Q2 | which is better memory allocation when size is not known
  • static
  • dynamic
  • both
  • neither
Q3 | which of the following is the best for getting a string with space from thestandard input
  • gets
  • getc
  • fgets
  • puts
Q4 | Which statement is used to compare the two strings?
  • strcmp
  • strcompare
  • stringcompare
  • str_cmp
Q5 | void main(){printf();}
  • Run-Time Error
  • Compile-Time Error
  • none
  • all