C Loops and Conditional statements (original) (raw)

Which of the following is an entry-controlled loop in C?

Which statement is used to skip the current iteration in a loop?

What is the default value of a loop control variable in C?

Which loop executes the body at least once, regardless of the condition?

What is the keyword to exit prematurely from current loop only?

What is the keyword to exit from a loop prematurely?

Which of the following is TRUE about switch statements in C?

Which part(s) of a for loop are optional in C?

Can you place a function call inside the initialization part of the for loop?

C `

for (printf("Init\n"); i < 3; i++) { printf("Body\n");

`

C `

#include <stdio.h>

int main() { int i = 1024; for (; i; i >>= 1) printf("GeeksQuiz"); return 0; }

`

How many times will GeeksQuiz be printed in the above program?

There are 21 questions to complete.

Take a part in the ongoing discussion