You are on page 1of 1

WINS Evening Coaching

Revision & Test Session 23 & 24


th
Class: 10 Subject: Computer Test-06 Time: 1 Hour Total Marks: 30
Name: Roll No: DATE 26-01-2024
SECTION A
Q1. CHOOSE THE BEST OPTION. (6 MARKS)

Questions Option A Option B Option C Option D Answer


1 Which character terminates a C
statement? Period Colon Semi colon Both B&C

2 ___ operator is used to assign a


value Relational Logical Arithmetic None of
these
3 What would be the output of
following expression? 84 40 42 None of
7+5*(3+4) these

4 Which of the following is


Increment operator? ++ + += =+

5 Binary operators are ________


Logical And Logical OR Both A&B None of
these

SECTION B
Q2. Answer the following Questions (15 marks)

I. Describe the working of Format specifiers in C language? Also write the names
commonly used format specifiers in C language.
OR
II. What are the operators of C language? List the types.
III. What is the purpose of scanf() function? Also write down its syntax?
OR
IV. What is the purpose of printf() function? Also write down its syntax?
V. Define Ternary Operators? Also write down its syntax?
VI. Differentiate between basic and compound assignment operators?
OR
VII. Differentiate between unary and binary operators with the help of examples?
VIII. Evaluate the equation (70*10-5%3*4+9/3).

SECTION C
Q3. Answer the following Questions (10 marks)

I. Write down the program that input three numbers from the user and display their sum,
product and average?
II. Write down the program that input 2 numbers from user and print the smallest number
using conditional operators?

You might also like