Download as pdf or txt
Download as pdf or txt
You are on page 1of 11

11/12/2016 legionofmaryuj.com/tutorial.

php

19:40
1.
Computer instructions are presented in a language known as ______
 A. Igbo Language
 B. Idoma Language
Answer: D
 C. Hausa Language
 D. Programming Language

2.
C++ is an example of ______
 A. 1GL
 B. 2GL
Answer: C
 C. 3GL
 D. 4GL

3.
Which of the languages are most suitable for programming a robot?
 A. 1GL
 B. 5GL
Answer: B
 C. 4GL
 D. 2GL

4.
A smart phone can act as a digital camera, a computer, a radio etc. What feature of OOP in C++ does the above scenario depicts?
 A. Class
 B. Polymorphism
Answer: B
 C. Encapsulation
 D. Inheritance

5.
Which of OOP and Structured Programming existed earlier?
 A. OOP
 B. Structured Programming
Answer: B
http://legionofmaryuj.com/tutorial.php 1/11
11/12/2016 legionofmaryuj.com/tutorial.php

 C. None of the Above
 D. All of the Above 19:40

6.
When data is categorized in a programming language, the language is said to be _________
 A. Structured
 B. Analytical
Answer: C
 C. Typed
 D. Untyped

7.
Data in C++ falls into how many basic or simple categories?
 A. 2
 B. 3
Answer: C
 C. 4
 D. 5

8.
The followings are examples of Integers in C++ except
 A. 10E­5
 B. 0x56
Answer: A
 C. 056
 D. 49

9.
Floating point literals are real numbers such as ________
 A. 10E­5
 B. 0x56
Answer: A
 C. 056
 D. 49

10.
\f represents __________
 A. Back Space
 B. Back Slash
http://legionofmaryuj.com/tutorial.php 2/11
11/12/2016 legionofmaryuj.com/tutorial.php

 C. Form feed Answer: C
 D. Feed Form 19:40

11. Use the statement below to answer question 11 to 13
Const float normal_body_temperature = 37.5;
 A. 37.5 is a literal constant
 B. 37.5 is a literal variable
Answer: A
 C. 37.5 is a variable
 D. 37.5 is just a number

12.
Float is the _________
 A. Temperature
 B. Humidity
Answer: C
 C. Data type
 D. Exponential Value

13.
Normal_body_temperature is the _________
 A. Identifier
 B. Unifier
Answer: A
 C. Modifier
 D. Patient Temperature

14. What is the result of the following expression
(8%2)*178
 A. 0
 B. 1
Answer: A
 C. 16
 D. 178

15. What is the result of the following expression
3 % 15
 A. 1
http://legionofmaryuj.com/tutorial.php 3/11
11/12/2016 legionofmaryuj.com/tutorial.php

 B. 2 Answer: C
 C. 3 19:40
 D. 5

16. What is the result of the following expression
100000 % 1000000
 A. 1000000
 B. 10
Answer: C
 C. 100000
 D. 1

17. What is the result of the following expression
1 % 10
 A. 0.1
 B. 1.0
Answer: C
 C. 1
 D. 10

18. What is the result of the following expression
10 % 1
 A. 0.1
 B. 0
Answer: B
 C. 1
 D. 1.0

19. What is the result of the following expression
True and false
 A. True
 B. False
Answer: B
 C. Na lie
 D. Na true

20. What is the result of the following expression
True and true
 A. Over true
http://legionofmaryuj.com/tutorial.php 4/11
11/12/2016 legionofmaryuj.com/tutorial.php

 B. True Answer: B
 C. False 19:40
 D. None of the above

21. What is the result of the following expression
False and true
 A. False
 B. Truefalse
Answer: A
 C. True
 D. None of the above

22. What is the result of the following expression
True || false
 A. True
 B. False
Answer: A
 C. Truefalse
 D. None of the above

23. What is the result of the following expression
False && false
 A. True
 B. Truefalse
Answer: D
 C. Falsetrue
 D. False

24.
True || true
 A. True
 B. Truetrue
Answer: A
 C. Falsetrue
 D. Very true

25. What is the result of the following expression
!(2>3 && (2*897­56) > (54*7/2))
 A. False
http://legionofmaryuj.com/tutorial.php 5/11
11/12/2016 legionofmaryuj.com/tutorial.php

 B. Falsetrue Answer: C
 C. True 19:40
 D. None of the above

26. What is the result of the following expression
7==5+2 ? 4 : 3
 A. 7
 B. 2
Answer: D
 C. 3
 D. 4

27. Which operator has the following format?
Condition? result1 : result2
 A. Addition++
 B. Question Mark Operator
Answer: D
 C. Conditional Binary Operator
 D. Conditional Tenary Operator

28.
What preprocessor directive is needed in other to use "ceil(x)" in a C++ program?
 A. MathematicsFunction.p
 B. Math.com
Answer: C
 C. Math.h
 D. Mathematics.p

29.
The semicolon (;) indicates the___ of the statement.
 A. Beginning
 B. Middle
Answer: D
 C. Comment
 D. End

30. What is the set of characters ">>" called in C++
Cin >> age;
 A. Extraction Operator
http://legionofmaryuj.com/tutorial.php 6/11
11/12/2016 legionofmaryuj.com/tutorial.php

 B. Insertion Operator Answer: A
 C. Excising Operator  19:40
 D. Double greater than 

31. What is the set of characters "<<" called in C++
Cout << 5;
 A. Extraction Operator
 B. Insertion Operator
Answer: B
 C. Excising Operator 
 D. Double less than 

32.
Cin extraction stops reading as soon as it finds any ______ character
 A. Full stop
 B. Back space
Answer: D
 C. Back slash
 D. Blank space 

33.
The function ________ returns a single character from a standard input device
 A. Getch()
 B. Putch()
Answer: A
 C. Getche()
 D. None of the above

34.
#include<conio.h> is needed when using ________
 A. Putch()
 B. Getline()
Answer: A
 C. Ceil()
 D. Sqrt()

35.
Which is the appropriate preprocessor directive for using formatted input and output commands?
 A. Conio.h
http://legionofmaryuj.com/tutorial.php 7/11
11/12/2016 legionofmaryuj.com/tutorial.php

 B. Stdio.h Answer: B
 C. Frmttd.h 19:40
 D. Math.h

36.
________ consists of format_string and variable argument list.
 A. Printf()
 B. Scanf()
Answer: A
 C. Showf()
 D. Displayth.f

37. What are the output type for the format specifiers in question 37 to 43
%d
 A. Signed decimal integer
 B. Floating point
Answer: A
 C. Floating point with exponential notation
 D. String

38.
%f
 A. Signed decimal integer
 B. Floating point
Answer: B
 C. Floating point with exponential notation
 D. String

39.
%e
 A. Signed decimal integer
 B. Floating point
Answer: C
 C. Floating point with exponential notation
 D. String

40.
%s
 A. Signed decimal integer
http://legionofmaryuj.com/tutorial.php 8/11
11/12/2016 legionofmaryuj.com/tutorial.php

 B. Floating point Answer: D
 C. Floating point with exponential notation 19:40
 D. String

41.
%o
 A. Unsigned octal integer
 B. Character
Answer: A
 C. Unsigned hexadecimal integer
 D. String

42.
%x
 A. Unsigned octal integer
 B. Character
Answer: C
 C. Unsigned hexadecimal integer
 D. String

43.
%c
 A. Unsigned octal integer
 B. Character
Answer: B
 C. Unsigned hexadecimal integer
 D. String

44. What will be output of the statement:
Printf("% 8.2f % 8.2f % 8.2f \n", 1.6, 49.01, 1600.2);
 A. _1.60 49.01_ _1600.2 
 B. _ _ _ _1.60_ __49.01_ _1600.2 
Answer: D
 C. _ _ _ 1.60_ _ _49.01_ _1600.2 
 D. _ _ _ _1.60_ _ _49.01_ _1600.2 

45.
The arguments in the argument list must begin with an _______.
 A. Ampersand
http://legionofmaryuj.com/tutorial.php 9/11
11/12/2016 legionofmaryuj.com/tutorial.php

 B. Inverted comma Answer: A
 C. Independent variable 19:40
 D. Unsigned integer

46.
To use stream manipulators the header ____ must be included.
 A. Iomanip
 B. Conio.h
Answer: A
 C. Stdio.h
 D. Math.h

47.
Cout<<hex<<20;
 A. 12
 B. 13
Answer: C
 C. 14
 D. Hex 20

48. What will be output of the statement:
Cout<<pow(3,2);
 A. 2
 B. 3
Answer: D
 C. 5
 D. 9

49.
Which of the following is not a kind of loop
 A. Control
 B. Counter Control
Answer: A
 C. Sentinel 
 D. Event

50.
No increment (or change of test value) of loop parameters, may result in an _________
 A. Undefined function
http://legionofmaryuj.com/tutorial.php 10/11
11/12/2016 legionofmaryuj.com/tutorial.php

 B. Steady loop Answer: C19:40
 C. Infinite loop
 D. Definite loop

  Submit Exam

http://legionofmaryuj.com/tutorial.php 11/11

You might also like