Home / Engineering / Programming for Problem Solving MCQs / Page 6

Programming for Problem Solving MCQs | Page - 6

Dear candidates you will find MCQ questions of Programming for Problem Solving here. Learn these questions and prepare yourself for coming examinations and interviews. You can check the right answer of any question by clicking on any option or by clicking view answer button.

M

Mr. Dubey • 51.32K Points
Coach

Q. 51) () is used for _________

(A) function body
(B) Arguments
(C) Return type
(D) Declaration of function
View Answer Discuss Share

M

Mr. Dubey • 51.32K Points
Coach

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

(A) static
(B) dynamic
(C) both
(D) neither
View Answer Discuss Share

M

Mr. Dubey • 51.32K Points
Coach

Q. 53) 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
View Answer Discuss Share

M

Mr. Dubey • 51.32K Points
Coach

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

(A) strcmp
(B) strcompare
(C) stringcompare
(D) str_cmp
View Answer Discuss Share

M

Mr. Dubey • 51.32K Points
Coach

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

(A) Run-Time Error
(B) Compile-Time Error
(C) none
(D) all
View Answer Discuss Share

M

Mr. Dubey • 51.32K Points
Coach

Q. 56) Total Number Of Keywords In C Are

(A) 30
(B) 12
(C) 34
(D) 32
View Answer Discuss Share

M

Mr. Dubey • 51.32K Points
Coach

Q. 57) The Compiler In C Ignores All Text Till The End Of Line Using

(A) //
(B) /
(C) */
(D) /*/
View Answer Discuss Share

M

Mr. Dubey • 51.32K Points
Coach

Q. 58) Printf() Belongs To Which Library Of C

(A) Stdlib.H
(B) Stdio.H
(C) Stdout.H
(D) Stdoutput.H
View Answer Discuss Share

M

Mr. Dubey • 51.32K Points
Coach

Q. 59) What Is Correct Order Of Precedence In C

(A) Addition, Division, Modulus
(B) Addition, Modulus, Division
(C) Multiplication, Substration, Modulus
(D) Modulus, Multiplication, Substration
View Answer Discuss Share

M

Mr. Dubey • 51.32K Points
Coach

Q. 60) In Switch Statement, Each Case Instance Value Must Be _______?

(A) Constant
(B) Variable
(C) Special Symbol
(D) None Of The Above
View Answer Discuss Share