Vous êtes sur la page 1sur 4

C

23rd

Intercom Programming & Manufacturing Company


February, 2015

1. The core function in every C language program is called


A. numero_uno().
B. main().
C. primus().
D. core().
2. C language keywords are
A. The words of the C language.
B. Held together with string and earwax.
C. Uttered only in candlelit reverence by the C Language Gurus.
D. As numerous as the stars and nearly as distant.
3. In addition to keywords are
A. Functions, such as printf().
B. Operators, such as +, -, and other weird things.
C. Curly braces or brackets, angle brackets all sorts of brackets. Man, do
we have a bracket problem!
D. Probably all of the above.
4. Functions require parentheses because
A. They talk in whispers.
B. The parentheses keep the function warm.
C. The parentheses hold various things required by or belonging tothe
function.
5. C was invented and first implemented by _________________?
A. Bjarne Stroustrup
B. Dennis Ritchie
C. Martin Richards
D. Ken Thompson
6. Another way to compartmentalize code in C is through the use of code
blocks
A. True
B. False
7. Standard C is a foundation upon which C++ is built.
1 | Page

Software Engineering Level 2

A. True
B. False

8. C is often called a ______?


A. Middle level language
B. Low level language
C. High level Language
D. Pascal
9. C performs almost no runtime error check
A. True
B. False
10. Since C does not allow the creation of functions within functions, it
cannot be called _________?
A. Code block
B. Function
C. Block-Structured
D. Middle level language
11.The ability of a language to section off and hide from the rest of the
program all information and instruction necessary to perform a specific task
is known as ________?
A. Programmability
B. Commenting codes
C. Compartmentalization of code
D. Uniformity of code
12. Functions are building blocks in which all program activity occurs.
A. True
B. False

13. A valid C program has the file extension .CPP?


A. True
B. False
14. Which of the following is NOT a character constant
A. Thank You

2 | Page

Software Engineering Level 2

B. Enter values of P, N, R
C. 23.56E-03
D. All the above
15. The maximum value that an integer constant can have is
A. -32767
B. 32767
C. 1.7014e+38
D. 1.7014e+38
16. A C variable cannot start with
A. An alphabet
B. A number
C. A special symbol other than underscore
D. Both (2) & (3) above
17. Which of the following statement is wrong
A. mes = 123.56 ;
B. con = 'T' * 'A' ;
C. this = 'T' * 20 ;
D. 3 + a = b ;

18. Which of the following shows the correct hierarchy of arithmetic operators in C
A. **, * or /, + or B. **, *, /, +, C. **, /, *, +, D. / or *, - or +
19. In b = 6.6 / a + 2 * n ; which operation will be performed first?
A. 6.6 / a
B. a + 2
C. 2 * n
D. Depends upon compiler
20. Which of the following is allowed in a C Arithmetic instruction
A. [ ]
B. { }
C. ( )
D. None of the above
21. Which of the following statements is false
A. Each new C instruction has to be written on a separate line
B. Usually all C statements are entered in small case letters
C. Blank spaces may be inserted between two words in a C statement
D. Blank spaces cannot be inserted within a variable name
22. If a is an integer variable, a = 5 / 2 ; will return a value

3 | Page

Software Engineering Level 2

A.
B.
C.
D.

2.5
3
2
0

23. Which of the following is FALSE in C


A. Keywords can be used as variable names
B. Variable names can contain a digit
C. Variable names do not contain a blank space
D. Capital letters can be used in variable names
24. In C, Arithmetic instruction cannot contain
A. variables
B. constants
C. variable names on right side of =
D. constants on left side of =
25. Which of the following shows the correct hierarchy of arithmetic operations in C
A. / + * B. - / +
C. + - / *
D. / + -

SECTION B
If the total selling price of 15 items and the total profit earned on them is input through the
Keyboard, write a program to find the cost price of one item.

4 | Page

Software Engineering Level 2

Vous aimerez peut-être aussi