Doc
Doc
Doc
a) A
b) B
c) BCPL
d) C++
Ans: c
4. C is a ___ language
a) High Level
b) Low Level
c) Middle Level
d) Machine Level
Ans: c
44. The printf() function retunes which value when an error occurs?
a) Positive value
b) Zero
c) Negative value
d) None of these
Ans: c
52. malloc() function used in dynamic allocation is available in which header file?
a) stdio.h
b) stdlib.h
c) conio.h
d) mem.h
Ans: b
56. What should be the expression return value for a do-while to terminate
a) 1
b) 0
c) -1
d) NULL
Ans: b
60. Which of the following header file is required for strcpy() function?
a) string.h
b) strings.h
c) files.h
d) strcsspy()
Ans: a
62. The conversion characters for data input means that the data item is
a) An unsigned decimal integer
b) A short integer
c) A hexadecimal integer
d) A string followed by white space
Ans: b
68. A Link is
a) a compiler
b) an active debugger
c) a C interpreter
d) an analyzing tool in C
Ans: d
70. In C, a Union is
a) memory location
b) memory store
c) memory screen
d) None of these
Ans: b
71. When the main function is called, it is called with the arguments
a) argc
b) argv
c) None of these
d) both a & b
Ans: d
72. A multidimensional array can be expressed in terms of
a) array of pointers rather than as pointers to a group of a contiguous array
b) array without the group of a contiguous array
c) data type arrays
d) None of these
Ans: a
73. C allows arrays of greater than two dimensions, who will determine this
a) programmer
b) compiler
c) parameter
d) None of these
Ans: b
77. If the size of the array is less than the number of initializers then,
a) Extra values are being ignored
b) Generates an error message
c) Size of Array is increased
d) Size is neglected when values are given
Ans: a
79. A Structure
a) can be read as a single entity
b) cannot be read as a single entity
c) can be displayed as a single entity
d) has member variables that cannot be read individually
Ans: b
81. If you want to exchange two rows in a two-dimensional array, the fastest way is to:
a) Exchange the elements of the 2rows
b) Exchange the address of each element in the two-row
c) Silence the address of the rows in an array of the pointer and exchange the pointer
d) None of these.
Ans: c
84. If you don’t initialize a static array, what will be the element set to?
a) Zero
b) A floating-point
c) An undetermined value
d) None of these.
Ans: a
86. The process of translating a source program into machine language is a function
of:
a) Compiler
b) Translator
c) Assembler
d) None of these.
Ans: a
89. Consider the foll statement: “using C language programmers can write their own library
functions”.
a) True
b) False
c) Maybe
d) None of these.
Ans: a
91. A function is a subroutine that may include one or more _______ designed to perform a specific
task.
a) Functions
b) Statements
c) Libraries
d) Datatypes.
Ans:b
99. C supports the ______ statement to branch unconditionally from one point to another in the
program.
a) continue
b) goto
c) break
d) for
Ans: b