Skip to content
Question Bank (2 marks) · Q31

Q.Write the syntax of if- statement.

Karnataka PUCTextbookShort· 2mImportance★★★★★est
92% · 141/154 Questions
🔒 Locked · start free trial →

You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.

Start your 14-day free trial to unlock the full solution →

[!TLDR]

Syntax: if (condition) { statements; }

The if statement checks a condition placed in parentheses. If the condition evaluates to true (non-zero), the statement(s) in its body (enclosed in braces for more than one statement) are executed; otherwise they are skipped and control passes to the next statement. …

Unlock everything free for 14 days

  • Full step-by-step solutions
  • Concept-first explanations
  • Methods, shortcuts & mistakes
  • PYQ mapping + timed mock tests

Full access for 14 days. No credit card required.