Itct Exam: (1 HOUR) (40 MARKS) Computer Science
Itct Exam: (1 HOUR) (40 MARKS) Computer Science
COMPUTER SCIENCE(C++)
1. Gives answer of following.(5)
a. C++ developer Name?
b. Two Compiler Name?
c. Three Header files Name?
d. 5 Built in Function and Their Header file Name?
e. 6 Keyword Name?
2. True/False (5)
a. A program can have multiple main function.
b. A Header file inclusion must be starting with #
c. (:) This is sentence terminator.
d. The function which has no return must be preceded with int
e. Int x[5]. Here 5 is Upper Bound of this Array
3. Fill in the blank (5)
a. The function change must be impact on calling function is possible in call by ………
b. For whole number we use ……. Data type.
c. ++x + x++ is equal to …….. when x value is 12
d. = is called …….. operator
e. 15%8= ………...
4. Solve all (25)
a. write output for following code:
int val,n=1000;
cin>>val;
res=n+val>1500?100:200;
cout<<res;
i) If the input is 1000.
ii) If the input is 200.
b.
Write the equivalent c++ expressions-
(1) p=2(l+b)
(2) z=2(p/q)2
(3) s=1/2mv2
(4) x=-b+√(b2-4ac) /2a