Computer Concept & Programming In C - Unit II - 14



Q.1 Which of the following is based on objective oriented programming concepts?
(a) C (b) COBOL (c) FORTRAN (d) C++.      (AKTU. 2008-09)

Q.2 Which character is used as an assignment operator in C language?
(a) = (b) ® (c) = = (d) ~.           (AKTU. 2008-09)

Q.3 At which stage a C pre-processor works?
(a) Before translation (b) Before linking
(c) After execution (d) None of the above.                            (AKTU. 2008-09)

Q.4 In which of the following loops the number of iterations remain known prior to the execution of the loop?
(a) While (b) Do-while       (c) For (d) In none of the above.              (AKTU. 2008-09)

Q.5 Which operator is used for accessing the members of a structure ?
(a) dot ( . ) (b) arrow (®)
(c) Both of the above (d) None of the above.                           (AKTU. 2008-09)

Q.6 Which of the following is not a data structure?
(a) queue (b) stack (c) tree (d) variable.                          (AKTU. 2008-09)

Q.7 Which character terminates string in C ?
(a) / 0 (b) \ 0 (c) ‘\ 0’ (d) ! 0
(e) None of the above.                                              (AKTU. 2008-09)

Q.8 In evaluation an expression a + b * C, which one of the following is correct
(a) + has higher preceence over *
(b) * has higher precedence over +
(c) both * and + have the same precedence
(d) The order of evaluation does not matter.                                              (AKTU. 2009-10)

Q.9 Typically an operating system
(a) manages all the hardware resources of the computer
(b) compiles a high-level program
(c) Both (a) and (b)
(d) None of the above.                                                (AKTU. 2009-10)

Q.10 The purpose of the following program fragment :
b = s + b; s = b - s; b = b - s;
where s, b are two integers is to :
(a) Transfer the content of s to b (b) Transfer the content of b to s
(c) Negate the content of s and b (d) Swap the contents of s and b.       (AKTU. 2009-10)

Q.11 The maximum value of a signed integer is :
(a) 216 - 1 (b) 215 - 1 (c) 216 (d) 215.                    (AKTU. 2009-10)

Q.12. If n = 3 then the output of the statement printf (“%d%”, n++, ++n); will be :
(a) 3 5 (b) 4 5 (c) 4 4 (d) is implementation dependent.           (AKTU. 2009-10)

Q.13 Which of the following clause is used to include I/O function library ?
(a) include # <io.h> (b) include # <stdio.h>
(c) # include <stdio.h> (d) none of the above.                                    (AKTU. 2009-10)

Q.14. How many bytes are occupied by the string literal constant “abc” in memory
(a) 1 byte (b) 3 bytes (c) 4 bytes (d) 2 bytes.                                        (AKTU. 2010-11)

Fill in the Blanks

Q.15 The .................... function reads data from keyboard.                  (AKTU. 2010-11)

Q.16 An ................... is a sequence of operators and operands that reduces to a single value.                                                                                   (AKTU. 2010-11)

True or False Statements

Q.17. An identifier in C must start with a letter or underscore. It is not allowed to have a space or a hyphen.                                                                         (AKTU. 2010-11)



1. (d) 2. (a) 3. (a) 4. (c) 5. (c) 6. (d) 7. (c) 8. (b)
9. (a) 10. (d) 11. (b) 12. (a) 13. (b) 14. (c)

Fill in the blanks
15. scanf ( ) 16. expression

True or False Statements
17. T