You are on page 1of 1

WINS Evening Coaching

Revision & Test Session 2023 & 24


th
Class: 10 Subject: Computer Test No. 7 Time: 1 Hour Total Marks: 30
Name: Roll No: DATE 02-02-2024
SECTION A
Q1. CHOOSE THE BEST OPTION A/B/C/D (5)

1. For which purpose if statement is used in C language


A) Repetition C) Sequence
B) Selection D) None of these
2. Which of the following is multiple selection statement
A) If else C) Switch Case
B) If else if D) Both B and C
3. Choose a syntax for C Ternary Operator from the list
A) condition? Expression 1: expression2
B) condition> Expression 1: expression2
C) condition: Expression 1: expression2
D) condition< Expression 1: expression2
4. Which statement can be used in place of conditional operator
A) Switch C) If
B) If Else D) None of these
5. Which statement is suitable When there are only two choices based on condition
A) Switch C) If else if
B) If D) None of these

SECTION B
Q2. ATTEMPT THE FOLLOWING ALL QUESTIONS CARRY EQUAL MARK (3*3=9)

1. Describe the working of if else statement?


2. Describe the working of break statement is switch case statement?
3. Write the following using if else statement:
k=(a+b>20)? a+3*b: a-b;

SECTION C
Q3. ATTEMPT THE FOLLOWING ALL QUESTIONS CARRY EQUAL MARKS (16)

1. Write a C program C program to print name of day using switch case statement (8)
2. Write a C program to input marks of five subjects Physics, Chemistry, Biology,
Mathematics and Computer. Calculate percentage and grade according to following
using if else if:(8)
Percentage >= 90%: Grade A
Percentage >= 80%: Grade B
Percentage >= 70%: Grade C
Percentage >= 60%: Grade D
Percentage >= 40%: Grade E
Percentage < 40%: Grade F

You might also like