Elements of C - MCQs Quiz-2 . This is the 2nd post of MCQs | online quiz for ICS Part-II || 2nd-year Computer Science Chapter No.9 . MCQ Questions of this quiz are important for the final examination , ECAT , and all entry tests for all universities of Pakistan.
It is tried best to make the important MCQs (Multiple Choice Questions) from this chapter (Elements of C ) with answers. This is the 2nd post for the online quiz of this chapter, the remaining MCQs along with answers will be posted soon.
The following may relate to you!
Show all questions
Back
Next
TC++ generates error if variables are?
? undeclared? not initialized? undeclared + not initialized? none of these
The “x==7” will?
? assign 7 as value to x? store 7 in x? checks whether 7 is equals to x or not? none of these
The logical OR operator combines two conditions and evaluates to true if?
? either one of condition is true? no condition is true? both conditions are true? both conditions are true
The memory requirement for float data type in bits is?
? 4? 32? 16? 64
The non-zero value is produced only when expression evaluates to?
? true? false? true + false? none of these
The operator which operates on three operands is called?
? unary? binary? ternary? all of these
The process of assigning values to a variable at the time of declaration is___?
? definition? assignment? initialization? definition + assignment
The term identifier is used to represent names of ____ in a program?
? variables? functions? labels? all of these
The unsigned int cannot handle following type of values?
? positive? fractional? negative? fractional + negative
What is the value of variable at the time of its declaration?
? defined? null? zero? garbage
Which of the following is a standard input function?
? printf()? int()? scanf()? sqrt()
Which of the followings have predefined meaning in C?
? standard identifiers? reserved words? keywords? all of these
Which of the following is a “not equals to operator”?
? >=? <=? !=? none of these
Which of the following is a valid syntax for variable declaration?
? data_type variable_name;? data_type;? variable_name;? none of these
Which of the following is a valid variable initialization?
? int x? int x=50? int z;? int x=50;
Nice
ReplyDeletethanks and stay tuned for more questions
DeletePost a Comment
Your feedback is highly appreciated and will help us to improve. So, please give your good suggestions.