Professional Documents
Culture Documents
A. Algorithm
B. Flowchart
C. Pseudocode
D. All of these
2. Which of the following retains the information it’s storing when the power to the system is
turned off?
a) CPU
b) ROM
c) RAM
d) DIMM
3. Which of the following statement is correct?
a) 1 KB = 1024 bytes
b) 1 MB=2048 bytes
c) 1 MB = 1000 kilobytes
d) 1 KB = 1000 bytes
4. The _______ symbol is used to represent decision in flowchart.
A. Circle
B. Rectangle
C. Diamond
D. None of these
5. A byte is equivalent to
a) 2 bits
b) 6 bits
c) 8 bits
d) 10 bits
6. A standard computer keyboard has how many keys?
a) 84
b) 94
c) 104
d) 114
7. The program written by the programmer in high level language is called _____________
a) Object Program
b) Source Program
c) Assembled Program
d) Compiled Program
8. ASCII stands for _____________________
16.What could be the maximum value of a single digit in an octal number system?
a) 8 b) 7 c) 6 d) 5
17. The maximum number of bits sufficient to represent an octal number in binary is _______
a) 4 b) 3 c) 7 d) 8
18. Property which allows to produce different executable for different platforms in C is
called?
a) File inclusion
b) Selective inclusion
c) Conditional compilation
d) Recursive macros
4. How many number of pointer (*) does C have against a pointer variable declaration?
a) 7
b) 127
c) 255
d) No limits
7. The standard header _______ is used for variable list arguments (…) in C.
a) <stdio.h >
b) <stdlib.h>
c) <math.h>
d) <stdarg.h>
8. When a C program is started, O.S environment is responsible for opening file and
providing pointer for that file?
a) Standard input
b) Standard output
c) Standard error
d) All of the mentioned
13. Which of the following are themselves a collection of different data types?
a) string
b) structures
c) char
d) all of the mentioned
15. The format identifier ‘%i’ is also used for _____ data type.
a) char
b) int
c) float
d) double
16. Which data type is most suitable for storing a number 65000 in a 32-bit system?
a) signed short
b) unsigned short
c) long
d) int
2. Which of the following data type will throw an error on modulus operation(%)?
a) char
b) short
c) int
d) float
3. Which among the following are the fundamental arithmetic operators, i.e, performing
the desired operation can be done using that operator only?
a) +, –
b) +, -, %
c) +, -, *, /
d) +, -, *, /, %
A. Newline ('\n')
B. Null ('\0')
C. Whitespace
D. None of the above
5. Which format specifier is used to read and print the string using printf() and
scanf() in C?
A. %c
B. %str
C. %p
D. %s
6. Which function is used to read a line of text including spaces from the user in
C?
A. scanf()
B. getc()
C. fgets()
D. All of the above
7. Which function is used to concatenate two strings in C?
A. concat()
B. cat()
C. stringcat()
D. strcat()
A. strcmp()
B. strcmpi()
C. compare()
D. cmpi()
A. data_type array_name[array_size];
B. data_type array_name{array_size};
C. data_type array_name[];
A. values
B. indices
C. memory addresses
D. All of the above
A. Random
B. Sequential
C. Both A and B
D. None of the above
12. If we pass an array as an argument to a function, what actually gets passed?
A. int
B. union
C. char
D. All of these
A. if
B. switch
C. nested if
D. All of these
D. All of these
A. 1
B. "includehelp"
C. ! NULL
D. All of these
A. if-else-if
B. ? :
C. ? ; ?
D. None of these
A. if(condition){
}
B. if(condition) :
C. If { [condition] }
D. None of these
A. True
B. False
20. When the condition of if statement is false, the flow of code will ___.