0% found this document useful (0 votes)
27 views

10class computer chp#2 test

Uploaded by

heist994
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views

10class computer chp#2 test

Uploaded by

heist994
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

AVENIR ACADEMY

Computer 10Th Class Monthly Test Session

wDate: Time: 65 minutes

Name: Total Marks: [5+14+3+8=30]

 Mark the correct option from given choice (A, B, C and D): /5

Sr# Statement A B C D
1. Which operator has / = > !
highest precedence
among the following
2. Let the following part of 8.8 8.0 8 0.8
code, what will be the
value of variable a after
execution
Int a=4;
Float b=2.2;
a=a*b;
3. getch() is used to int float char All
take_____ as input from
user
4. What is true about C Keywords All logical C is not a None of
language: can be used operators case them
as variable are binary sensitive
AVENIR ACADEMY
Computer 10Th Class Monthly Test Session

operators
5. Which one is a escape /n \$ /t \’
sequence
 Write short answers of following questions : /14
1. What is getch()?
2. Define statement terminator?
3. What is escape sequence also write two of them?
4. Differentiate between unary and binary operator?
5. Write the output of following code:
#include<stdio.h>
Void main()
{
printf(“nn\n\nnnn\nn\nt\t”);
printf(“nn/n/nnn/n\n”);
}?
6. Indentify the error from code
Include<stdio.h>
Int main()
{
float f;
printf[“enter value:”];
scanf(“%c”,&f);
}?
7. Define relational operator?
AVENIR ACADEMY
Computer 10Th Class Monthly Test Session

 Program : /3
1. Write a program that takes as input the number of balls in jar A and the
number of balls in jar B. The program calculate and displays the total
number of balls.
 Long Question: /7
1. Define operator also discuss logical operator, arithmetic operator and
assignment operator?

You might also like