C Programming questions
C Programming questions
19. In the Boolean function w=f(X,Y,Z), what is the RHS referred to as ________
a) right hand side
b) expression(b)
c) literals
d) boolean
20. A __________ gate gives the output as 1 only if all the inputs signals are 1.
a) AND(a)
b) OR
c) EXOR
d) NOR
22. Which of the following gate will give a 0 when both of its inputs are 1?
a) AND
b) OR
c) NAND(c)
d) EXOR
a) NOR(a)
b) NAND
c) EXOR
d) OR
29. Which keyword is used to prevent any changes in the variable within a C
program?
a) immutable
b) mutable
c) const(c)
d) volatile
31. The format identifier ‘%i’ is also used for _____ data type.
a) char
b) int(b)
c) float
d) double
a. TA&T
b. AT&T (b)
c. AT&A
d. None of the above
38. To compile and run C program, what shortcut keys you use
a. Ctrl+F5
b. Ctrl+F9 (b)
c. Ctrl+F4
d. Ctrl+F7
50. The method(s) to pass the data into the function is/are
a. Call by value
b. Call by reference
c. Both a and b (c)
d. None of the above