You are on page 1of 1

GLOBAL ACADEMY OF TECHNOLOGY

Department of Computer Science & Engineering


Affiliated to VTU, Accredited by NAAC with 'A' grade
RR Nagar, Bengaluru – 560 098
(Accredited by NBA 2019-2022)

Module 2-Question Bank

1. Explain the working of the if statement with syntax and examples.


2. Explain the working of the if-else ladder statement with syntax and examples.
3. Explain the working of nested if statements with syntax and examples.
4. Write a C program to input 3 numbers and find the greatest among them using a
nested if-else statement.
5. Write a C program to check whether the number is positive or negative.
6. Write a C program to check whether the number is even or odd.
7. Write a C program to find the maximum and minimum of two numbers.

You might also like