C-Control Instructions Questions and Answers

Take Exam

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
Show Answer Report

2. Which of the following is not logical operator?

  • &
  • &&
  • ||
  • !
Show Answer Report

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
Show Answer Report

4. Which of the following cannot be checked in a switch-case statement?

  • Character
  • Integer
  • Float
  • enum
Show Answer Report

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
Show Answer Report

6. Which loop is guaranteed to execute at least once in C?

  • for loop
  • while loop
  • do-while loop
  • if-else statement
Show Answer Report

7. What is the output of: for(i=0;i<3;i++) printf("%d",i);

  • 012
  • 123
  • 0123
  • 1234
Show Answer Report

8. Which statement is used to terminate a loop immediately in C?

  • exit
  • break
  • continue
  • return
Show Answer Report

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
Show Answer Report

10. Which is an entry-controlled loop in C?

  • do-while loop
  • while loop
  • Both while and do-while
  • for loop only
Show Answer Report
Questions and Answers for Competitive Exams Various Entrance Test