Course: C Programming


Topic: Control Flow Quiz

Total Time: 5 Minutes

Difficulty Level: medium


C Programming Quiz Instructions

Welcome to the C If...Else Quiz.

This quiz tests your understanding of conditional statements in C, specifically the if, else, and else if constructs used to make decisions in programs. Conditional statements allow your program to execute different blocks of code based on whether a condition is true or false. They are essential for controlling program flow, handling logic, validating input, and building real world applications. Learning how to use if...else statements correctly helps you write smarter and more dynamic C programs. Read the instructions carefully before you begin the quiz.

Quiz Format

  • Total Questions: 10

  • Difficulty Level: Medium

  • Question Type: Multiple Choice

  • Each question has one correct answer.

Timing

  • Total time limit: 5 minutes

  • Answer steadily and avoid spending too much time on any single question.

Scoring

  • Each correct answer = +1 point

  • No negative marking

  • Maximum Score = 10 points

How to Play

  • Read each question carefully and review the C code examples provided.

  • Understand how the if statement works with conditions.

  • Learn how else executes when the condition is false.

  • Focus on how else if helps check multiple conditions.

  • Observe how comparison operators are used in conditions.

  • Identify correct and incorrect syntax of if...else statements.

  • Pay attention to logical operators like &&, ||, and !.

  • Understand nested if...else statements.

  • Choose the option that best represents correct C conditional behavior.

  • Once you move to the next question, you cannot return to previous ones.

Rules

  • Do not refresh or close the quiz window during the attempt.

  • Avoid using notes, books, or online references.

  • Keep track of the remaining time during the quiz.

Before You Start

After Submission

  • Your score will be displayed instantly.

  • Review the correct answers to understand mistakes.

  • This will help you confidently use conditional statements in C programs.

Go Back Top