C-Control Instructions Questions and Answers
In C programming, control instructions define the flow of execution using decision-making, looping, and branching statements. Commonly tested in programming questions and answers, this concept evaluates a candidate’s logical thinking and problem-solving skills. Companies like TCS, Wipro, and Infosys often include C control instruction questions with answers in their online assessments and interviews. By mastering conditional statements (if-else, switch), loops (for, while, do-while), and jump statements, programmers can write optimized code. This section provides solved C programming MCQs and explanations to help you understand control flow deeply and perform better in technical placement rounds.
C-Control Instructions
Showing 10 of
24 questions
1. How many times the while loop will get executed if a short int is 2 byte wide? #include<stdio.h> int main() { int j=1; while(j <= 255) { printf("%c %d\n", j, j); j++; } return 0; }
- Infinite times
- 255 times
- 256 times
- 254 times
3. In mathematics and computer programming, which is the correct order of mathematical operators ?
- Addition, Subtraction, Multiplication, Division
- Division, Multiplication, Addition, Subtraction
- Multiplication, Addition, Division, Subtraction
- Addition, Division, Modulus, Subtraction
4. Which of the following cannot be checked in a switch-case statement?
- Character
- Integer
- Float
- enum
5. What is the purpose of a control instruction in C programming?
- To declare variables
- To perform mathematical calculations
- To control the flow of program execution
- To define functions
6. Which loop is guaranteed to execute at least once in C?
- for loop
- while loop
- do-while loop
- if-else statement
8. Which statement is used to terminate a loop immediately in C?
- exit
- break
- continue
- return
9. What does the continue statement do in a loop?
- Terminates the loop
- Skips current iteration and continues with next
- Exits the program
- Restarts the loop from beginning
10. Which is an entry-controlled loop in C?
- do-while loop
- while loop
- Both while and do-while
- for loop only