[go: up one dir, main page]

0% found this document useful (0 votes)
80 views1 page

Itct Exam: (1 HOUR) (40 MARKS) Computer Science

This document contains questions for an ITCT exam in C++. It has 4 sections: 1. Name specific C++ components like developers, compilers, header files and built-in functions. 2. Identify true/false statements about C++ code. 3. Fill in blanks with appropriate C++ terms like data types and operators. 4. Solve coding problems like writing code snippets to calculate outputs, writing programs to calculate Fibonacci numbers and factorials, and determining the output of a provided program.

Uploaded by

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

Itct Exam: (1 HOUR) (40 MARKS) Computer Science

This document contains questions for an ITCT exam in C++. It has 4 sections: 1. Name specific C++ components like developers, compilers, header files and built-in functions. 2. Identify true/false statements about C++ code. 3. Fill in blanks with appropriate C++ terms like data types and operators. 4. Solve coding problems like writing code snippets to calculate outputs, writing programs to calculate Fibonacci numbers and factorials, and determining the output of a provided program.

Uploaded by

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

ITCT EXAM (1 HOUR )(40 MARKS)

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

C. Write a program in c++ to print Fibonacci series:-


0,1,1,2,3,5,8 …………….
D. Write a program in c++ to find out factorial of a given no.
E. Find the output of the following program:
#include<iosteam.h>
void Execute (int& x,int y=200)
{
int temp = x + y;
x+ = temp;
if(y!=200)
cout<<temp<<x<<y;
}
main( )
{
int a = 50,b=20;
Execute(a,b);
cout<<a<<b;
}

You might also like