Вы находитесь на странице: 1из 1

Test Paper- C/C++ Duration: 1 hr

Note:
1. Objective Type- Select appropriate option.
2. In True /False type Question Indicate T or F in front of statement.
3. Separate paper sheet can be used to answer Descriptive Question.
4. For answering descriptive type question you have use space given.

CPP.Q1. Which of the following assignments are valid in C++


1. float x =123.4;
2. int n=(int)false;
3. long m=023
4. double Y=0X756
5. All of above are valid

C.Q2. What will be result of expression (1&2) +(3|4) in base ten?


(a) 1
(b) 2
(c) 8
(d) 7
(e) 3

CPP.3. What would be the output of the following program?

int main()
{
int x,y=10,z=10;
x=(y==z);
cout<<x;
return 0;
}

(a) 0
(b) 1
(c) 10
(d) Error

CPP.4 Find the output of the following program?

Main()
{
Int n,i,k;
J=k=6;
n=2;
n=j*k; printf(“%d”,n); }

Вам также может понравиться