0% found this document useful (0 votes)
7 views

C Programming questions

The document contains a multiple-choice questionnaire covering various topics in computer science and programming, particularly focusing on C language and computer fundamentals. It includes questions about computer components, data representation, Boolean algebra, and C programming syntax and functions. Each question is followed by multiple options, with the correct answer indicated in parentheses.

Uploaded by

arpandey96095
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views

C Programming questions

The document contains a multiple-choice questionnaire covering various topics in computer science and programming, particularly focusing on C language and computer fundamentals. It includes questions about computer components, data representation, Boolean algebra, and C programming syntax and functions. Each question is followed by multiple options, with the correct answer indicated in parentheses.

Uploaded by

arpandey96095
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 8

BECA_MCQ

1. The only language which the computer understands is ______________


a) C Language
b) Assembly Language
c) Binary Language (c)
d) BASIC

2. Which of the following is the brain of the computer?


a) Central Processing Unit (a)
b) Memory
c) Arithmetic and Logic unit
d) Control unit

3. Which of the following is not a characteristic of a computer?


a) Versatility
b) Accuracy
c) Diligence
d) I.Q.(d)

4. What is the word length of a personal computer?


a) 32 bits
b) 8 bits(b)
c) 64bits
d) 16 bits

5. Which of the following is the smallest unit of data in a computer?


a) Bit(a)
b) KB
c) Nibble
d) Byte

6. A ___________________ monitor looks like a television and are normally used


with non-portable computer systems.
a) LED
b) LCD
c) CRT(c)
d) Flat Panel Monitors

7. Which of the following is designed to control the operations of a computer?


a) User
b) Application Software
c) System Software(c)
d) Utility Software

8. The physical devices of a computer:


a) Hardware(a)
b) Software
c) System Software
d) Package

9. A __________ is a set of instructions that is prepared to perform a specific


assignment if executed by a computer.
a) Program (a)
b) Code
c) Internet
d) Browser

10. 1 yottabyte = ______________


a) 1024 TB
b) 1024 EB
c) 1024 ZB(c)
d) 1024 PB

11. The 2’s complement of 5 is ______________


a) 1011(a)
b) 0101
c) 1010
d) 0011

12. The value of base in a decimal number system is ____________


a) 8
b) 2
c) 10(c)
d) 16

13. The hexadecimal representation of 14 is _______________


a) A
b) F
c) D
d) E(d)

14. Convert the binary equivalent 10101 to its decimal equivalent.


a) 21(a)
b) 12
c) 22
d) 31

15. The binary number 1110 in hexadecimal format is _____________


a) 6
b) E(b)
c) 14
d) 15

16. The number of values applicable in Boolean Algebra.


a) 1
b) 2(b)
c) 3
d) 4

17. The symbol + in Boolean is also known as the ____________ operator.


a) AND
b) OR(b)
c) ADD
d) SUMMATION

18. Truth table is used to represent Boolean __________


a) functions(a)
b) algebra
c) operators
d) addition

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

21. The Boolean expression of an OR gate is _______


a) A.B
b) A’B+AB’
c) A+B(c)
d) A’B’

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

23. The gate which is called an inverter is called _________


a) NOR
b) NAND
c) EXOR
d) NOT(d)

24. The following figure shows a ___________ gate.

a) NOR(a)
b) NAND
c) EXOR
d) OR

25. Who is the father of C language?


a) Steve Jobs
b) James Gosling
c) Dennis Ritchie(c)
d) Rasmus Lerdorf

26. Which of the following is not a valid C variable name?


a) int number;
b) float rate;
c) int variable_count;
d) int $main;(d)

27. All keywords in C are in ____________


a) LowerCase letters(a)
b) UpperCase letters
c) CamelCase letters
d) None of the mentioned
28. Which is valid C expression?
a) int my_num = 100,000;
b) int my_num = 100000;(b)
c) int my num = 1000;
d) int $my_num = 10000;

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

30. What is an example of iteration in C?


a) for
b) while
c) do-while
d) all of the mentioned(d)

31. The format identifier ‘%i’ is also used for _____ data type.
a) char
b) int(b)
c) float
d) double

32. Which of the following cannot be a variable name in C?


a) volatile(a)
b) hello
c) friend
d) export

33. What is #include <stdio.h>?


a) Preprocessor directive(a)
b) Inclusion directive
c) File inclusion directive
d) None of the mentioned

34. The C-preprocessors are specified with _________symbol.


a) #(a)
b) $
c) ” ”
d) &

35. scanf() is a predefined function in______header file.


a) stdlib. h
b) ctype. h
c) stdio.H (c)
d) stdarg. H

36. C programming language was developed at

a. TA&T
b. AT&T (b)
c. AT&A
d. None of the above

37. The features of C language is/are


a. Simple
b. Rich Library
c. Portable
d. All of the above (d)

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

39. The Compilation is a process of


a. Converting the object code to source code
b. Converting the source code to object code (b)
c. Both a and b
d. None of the above

40. The printf() function is used for


a. Output (a)
b. Input
c. Both a and b
d. None of the above

41. How many reserved keywords found in C language?


a. 31
b. 32 (b)
c. 33
d. 34

42. How many comments found in C language?


a. 1
b. 2 (b)
c. 3
d. 4

43. %s format specifier is used to print


a. The signed integer value
b. The floating point value
c. The strings (c)
d. None of the above

44. The “static” keyword can be used for


a. Variable
b. Function
c. Method
d. All of the above (d)

45. The debugging mean


a. Removing the fault (a)
b. Adding the fault
c. Editing the fault
d. None of the above

46. How many type(s) of compile-time error(s)


a. 2 (a)
b. 3
c. 4
d. 5

47. The switch statement in C language


a. An alternate to if-else-if statement (a)
b. An alternate to if-else statement
c. An alternate to if statement
d. None of the above

48. How many type(s) of C loops


a. 2
b. 3 (b)
c. 4
d. 5

49. The infinite loop can be done by


a. Not giving any expression (a)
b. Giving all expression
c. Giving any one expression
d. None of the above

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

You might also like