All India Exams
Home AptitudeBankEngineeringEnglishGKInterviewOnline TestPlacement PapersReasoning
  • Home
  • Aptitude
  • Bank
  • Engineering
  • English
  • GK
  • Interview
  • Online Test
  • Placement Papers
  • Reasoning

Control Flow Statements C Questions And Answers

Here you can find Control Flow Statements C Questions and Answers.

Why Control Flow Statements C Questions and Answers Required?

In this Control Flow Statements C Questions and Answers section you can learn and practice Control Flow Statements C Questions and Answers to improve your skills in order to face technical inerview conducted by Banks. By Practicing these interview questions, you can easily crack any Bank Exams interview.

Where can I get Control Flow Statements C Questions and Answers?

AllIndiaExams provides you lots Control Flow Statements C Questions and Answers with proper explanation. Fully solved examples with detailed answer description. All students, freshers can download Control Flow Statements C Questions and Answers as PDF files and eBooks.

How to solve these Control Flow Statements C Questions and Answers?

You no need to worry, we have given lots of Control Flow Statements C Questions and Answers and also we have provided lots of FAQ's to quickly answer the questions in the Bank Exams interview.

Control Flow Statements C Questions & Answers

1. Which keyword can be used for coming out of recursion?

Control Flow Statements C Questions & Answers

2. What is the output of this C code? int main() { int a = 0, i = 0, b; for (i = 0;i < 5; i++) { a++; continue; } }

Control Flow Statements C Questions & Answers

3. What is the output of this C code? int main() { int a = 0, i = 0, b; for (i = 0;i < 5; i++) { a++; if (i == 3) break; } }

Control Flow Statements C Questions & Answers

4. The keyword ‘break’ cannot be simply used within:

Control Flow Statements C Questions & Answers

5. Which keyword is used to come out of a loop only for that iteration?

Control Flow Statements C Questions & Answers

6. What is the output of this C code? void main() { int i = 0, j = 0; for (i = 0;i < 5; i++) { for (j = 0;j < 4; j++) { if (i > 1) break; } printf("Hi \n"); } }

Control Flow Statements C Questions & Answers

7. What is the output of this C code? void main() { int i = 0; int j = 0; for (i = 0;i < 5; i++) { for (j = 0;j < 4; j++) { if (i > 1) continue; printf("Hi \n"); } } }

Control Flow Statements C Questions & Answers

8. What is the output of this C code? void main() { int i = 0; for (i = 0;i < 5; i++) if (i < 4) { printf("Hello"); break; } }

Control Flow Statements C Questions & Answers

9. What is the output of this C code? void main() { int i = 0; if (i == 0) { printf("Hello"); continue; } }

Control Flow Statements C Questions & Answers

10. What is the output of this C code? void main() { int i = 0; if (i == 0) { printf("Hello"); break; } }

Home EngineeringComputer Science & EngineeringC Multiple Choice Questions & AnswersControl Flow Statements

Control Flow Statements - C Multiple Choice Questions & Answers

This is the c programming questions and answers section on " Control Flow Statements " with explanation for various interview, competitive examination and entrance test. Solved examples with detailed answer description, explanation are given and it would be easy to understand.

Control Flow Statements C Questions

Online Test Name Control Flow Statements
Exam Type Multiple Choice Questions
Category Computer Science Engineering Quiz
Number of Questions 97
1. Which keyword can be used for coming out of recursion?
  • A. break
  • B. return
  • C. exit
  • D. Both (a) and (b)
  • View Answer
  • Workspace
  • Report
  • Discuss

Answer & Explanation

Answer: Option B

Explanation:

none

Workspace

Report Error


2. What is the output of this C code?

int main()
{
   int a = 0, i = 0, b;
   for (i = 0;i < 5; i++)
  {
     a++;
     continue;
   }
}
  • A. 2
  • B. 3
  • C. 4
  • D. 5
  • View Answer
  • Workspace
  • Report
  • Discuss

Answer & Explanation

Answer: Option D

Explanation:

none

Workspace

Report Error


3. What is the output of this C code?

    int main()

    {

        int a = 0, i = 0, b;

        for (i = 0;i < 5; i++)

        {

            a++;

            if (i == 3)

                break;

        }

    }

  • A. 1
  • B. 2
  • C. 3
  • D. 4
  • View Answer
  • Workspace
  • Report
  • Discuss

Answer & Explanation

Answer: Option D

Explanation:

none

Workspace

Report Error


4. The keyword 'break' cannot be simply used within:
  • A. do-while
  • B. if-else
  • C. for
  • D. while
  • View Answer
  • Workspace
  • Report
  • Discuss

Answer & Explanation

Answer: Option B

Explanation:

none

Workspace

Report Error


5. Which keyword is used to come out of a loop only for that iteration?
  • A. break
  • B. continue
  • C. return
  • D. None of the mentioned
  • View Answer
  • Workspace
  • Report
  • Discuss

Answer & Explanation

Answer: Option B

Explanation:

none

Workspace

Report Error


  • «
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • ...
  • 19
  • 20
  • »

Related Topics:

  • C Operators
  • Variable Names
  • Declarations
  • File Access
  • Data Types
  • Preprocessor
  • C Data Types
  • Constants
  • Structures, Unions, Bit-fields
  • Typedef

Mock Tests & Online Quizzes

  • Aptitude Online Test

  • Reasoning Online Test

  • GK Online Test

  • English Online Test

  • RRB Mock Test

  • RBI Mock Test

  • Free SBI Mock Test

  • IBPS Mock Test FREE

  • SSC Mock Test

  • CAT Exam Mock Test

  • GATE Mock Test

  • IT Courses Quiz

Questions and Answers

  • Aptitude Questions
  • Verbal Reasoning Questions
  • Non Verbal Reasoning
  • Logical Reasoning Questions
  • Data Sufficiency Questions
  • Data Interpretation
  • eLitmus Sample Papers
  • ECE Questions and Answers
  • EEE Questions and Answers
  • Verbal Ability Questions
  • GK Questions

Programming Quiz

  • C Programming
  • C++ Programming
  • PHP Programming
  • Java Programming
  • Python Programming
  • DataScience MCQ
  • Hadoop MCQ
  • Mongo DB MCQ
  • MySQL MCQ

Interview Questions

  • Java Interview Questions
  • .Net Interview Questions
  • Networking Interview Questions
  • C Language Interview Questions
  • C++ Interview Questions
  • Testing Interview Questions
  • Android Interview Questions
  • HR Interview Questions
  • Group Discussion Topics

Mock Tests

  • CAT Mock Test
  • SSC Mock Test
  • AMCAT Mock Online Test
  • LIC Mock Test
  • IBPS Mock Test
  • RRB Mock Test
  • RBI Mock Test
  • Free SBI Mock Test
© by AllIndiaExams.in. All Rights Reserved | Copyright | Terms of Use & Privacy Policy