TCS MCQ C Question – 6

Ques. Which of this is used to skip one iteration:
A) breakB) continue
C) goto
D) return

Ques. Which of the following does not require to include math.h header file?
A) pow()B) rand()
C)sqrt()
D) sinh()Ques. Which has the highest precision?
A. float
B. double
C. unsigned long int
D. Long int

Ques. Choose the correct statementwhile (0 == 0) { }
A) It has syntax error as there are no statements within braces {}
B) It will run forever
C) It compares 0 with 0 and since they are equal it will exit the loop immediately
D) It has syntax error as the same number is being compared with itself

A) 2 or 4 —
B) 1 or 3
C) Garbage value
D) ASCII value of aExplaination:sizeof takes ascii value of character and determines number of bytes required by it. Ascii is number, Number is of type int. so integer requires either 2 in 16 or 4 in 32 bit machine