You are on page 1of 5

INTRODUCTION TO C++/ INPUT & OUTPUT HANDLING

1. C language IDE consists of ______ number of modules.


a. 4 b. 5
c. 3 d. 6
2. __________ is a computer software that translates C language code into machine
code.
a. Application program b. IDE
d. Compiler d. Loader
3. Some of the functions that are included in conio.h file are :
a. Getch() c. IDE

b. Pow() d. Printf()

4. Which is correct way to include preprocessor directives


a. #<header file> b. include<header file>
c. #include<header file> d. <header file>
5. _____________ is a software that takes one or more object files, combines them
into a single executable program.
a. Application program c. IDE
b. Compiler d. Loader
6. Who developed Java language?
a. Dennis Ritchie c. Microsoft
b. IBM d. Sun Microsystems
7. ________ gives the meanings to statements of a programming language.
a. Program c. Syntax
b. IDE d. Semantic
8. ______________ Operators are used to compare two values of the same type.
a. Arithmetic c. logical
b. Relational d. Assignment
9. Which one of the given is not type of logical operator.
a. == c. &&
b. ! d. ||
10. If n = 7 what will be the output of ( n< 10) || (n>25)
a. True c. False
b. NOt d. NILL
11. If (k>15) a= x*y; else a = x+y, which one is correct alternate of this code?
a. True c. False
b. Not d. NILL

12. ____________operator is used with a single expression.


a. AND c. OR
b. NOT d. EQUAL TO
13. Which of the following has highest precedence?
a. && c. <=
b. = d. *
14. Which statement is equivalent to “k = k+a”?
a. K+=a c. k=+a
b. K++a d. k=a++
15. _________ will be the output of given code.
Int x, y, n;
X= 15; y= 10;
n=(x>y)? x+y: x++;
printf(” n =”, n);
16. 50+7*(6-5) will generate output:
a. 55 c. 50
b. 57 d. 127
17. The precedence determines which operator______________
a. Is faster
b. Is used first
c. Is most important
d. Operates on larger numbers
18. ____________ Value does not change during program execution.
a. Constant
b. Co-efficient
c. Token
d. Variable
19. What is the valid number range of integer data type
a. 0 to 256
b. -32768 to 32768
c. -65536 to +65536
d. 1 to 256
20. Which symbol is used as a statement terminator in C?
a. #
b. ;
c. !
d. /
21. What will be the maximum size of float variable?
a. 1 byte b. 2 bytes
c. 4 bytes d. 8 bytes

22. The && operator is an example of ______


a. Assignment c. Increment
b. Logical d. Relational
23. The equality operator is represented by:
a. = c. ==
b. != d. Equal
24. Relational operators are used to compare_______ valyes of same kind.
a. Two c. Five
b. Four d. Six
25. Which operator has lowest priority?
a. ++ c. +
b. % d. ||
26. The operator + in a+=4 means:
a. a= a + 4 c. a= a + a
b. a + 4 =a d. a= 4+ 4
27. symbolic constant can be defined using:
a. Symbols c. Const
b. #define d. int
28. In C true is represented by :
a. 0 c. True
b. 1 d. NO
29. The process of finding and removing errors in the program is called
a. Testing c. Executing
b. Debugging d. Linking
30. Which of the following is an arithmetic operator?
a. % c. &&
b. + d. !
31. HLL is an abbreviation of :
a. Highest level language c. High Level Language
b. High and Low language d. ALL of Above
32. Fortran stands for:
a. Formula Transaction c. Format Transaction
b. Formula Translation d. Format Translation
33. C language was developed in early____
a. 1965s c. 1940s
b. 1970s d. 1975s

34. Any program written In C language other than machine code is called
a. Reserved program c. Source Program
b. Stored Program d. Executed Program
35. To exit from IDE, quit from file menu or press ______ key.
a. Alt+X
b. Alt+Y
c. Alt +C
d. Alt+Z

You might also like