0% found this document useful (0 votes)
65 views5 pages

10th Computer Ch1 MCQs

Uploaded by

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

10th Computer Ch1 MCQs

Uploaded by

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

NOTES: 10TH COMPUTER - UNIT 1 - MC S]

Unit 1: Introduction to Pro rammin

Multiple Choice Questions

Choose the correct answer


1. A series of instructions given to the b. Xcode
computer to solve any kind of problem is c. Code::Block
called: d. All
a. Program 7. An IDE typically consists of:
b. Operation a. Text editor
c. Computing b. Compiler
d. Process c. Debugger
2. Computer programs are also known d. All
as: 8. IDE stands for:
a. Software a. Integrated Digital Environment
b. Procedure b. Integrated Desktop Environment
c. Algorithm c. Integrated Development Environment
d. Computing d. Internal Disk Error
3. The process of feeding or storing 9. A is a software that is used to
instructions in the computer is known as: write and edit computer programs.
a. Flowchart Designing a. Text Editor
b. Computer Programming b. Compiler
c. Data Processing c. Debugger
d. Problem Solving d. Loader
4. The person who knows how to write a a. Editor
computer program correctly is known 10. C programs are converted into
as: machine language with the help of:
a. Programmer a. Editor
b. Operator b. Compiler
c. Manager c. Debugger
d. Designer d. Loader
5. C language was developed by__ 11. The syntax errors in a program are
between 1969 and 1973 at Bell Labs. checked by:
a. Von-Neumann a. Compiler
b. Bjarne Stroustrup b. Text Editor
c. Charles Babbage c. Linker
d. Dennis Ritchie d. Loader
6. Which of the following is a C language 12. A set of rules to write instructions in
IDE? a programming language is known as:
a. Visual Studio a. Syntax

PAGE: 1 OF 5]
NOTES: 10TH COMPUTER - UNIT 1 - MC S]

-:-Semantic b. Bottom of the program


c. Rules c. Middle of the program
d. Keywords d. Anywhere
13. A ___occurs when the rules of the 21. Ccontains header files.
programming language are not followed. a.5
a. Syntax error b. 10
b. Runtime error C. 15

c. Logical error d. Many


d. Program error 22. Header files in Ccontain:
14. What is the name for the words that a. Keywords
have predefined meaning and cannot be b. Library functions
used as variable names? c. Comments
a. Auto words d. Operators for files
b. Reserved words 23. stdio stands for:
c. Restricted words a. Standard input output
d Predefined words b. Symbolic input output
15. Another name for keyword is: c. Simple input output
a. Reserved word d. String input output
b. Special words 24. The name of header file can be
c. Restricted word written between:
d. Auto word a. []
16. All keywords in Care written in: b. ()
a. Upper case C. <>

b. Title case d. <<>>


c. Lowercase 25. The extension of the header file is:
d. a or b a. .cpp
17. const, double and int are examples of: b. .txt
a. Comments C. . C

b. Reserved Words d. .h
c. Header files 26. Which header file contains
d. Identifiers information about standard
18. Which of the following is not a input/output functions?
reserved word? a. stdio.h
a. if b. math.h
b. Float c. time.h
c. goto d. string.h
d. void 27. Which of the following header file
19. If a reserved word is used as variable contains information about common
name, it causes error. mathematical functions?
a. Syntax a. stdio.h
b. Logical b. math.h
c. Runtime C. conio.h
d. Program d. arith.h
20. The place to write header files in C 28. The main () is a:
program is: a. Header File
a. Top of the program b. Comment

PAGE: 2 OF 5]
NOTES: 10TH COMPUTER - UNIT 1 - MC S]

c. unction 36. Single line comment in C language


d. Expression start with:
29. Which of the following functions a.#
must be included in all C programs? b. II
a. start() C. *\
b. system() d. I*
c. main() 37. Multiline comments in C language
d. program() end with:
30. Which of the following is used to a.#
indicate the start and end of main() b. II
function body? c.*\
a. { and} d. *I
b. ( and ) 38. In C language, the comments can be
c. BEG and END written in a program between:
d. ->and<- a. { }
31. For every opening brace in a C b./* *I
program, there must be a: C. I* *I
c. Closing brace d. <>
b. Comma 39. Which of the following is correct
c. Colon comment in C language?
d. Period a. IIcomment
32. C statement ends with a: b. I* comment *I
a. Period (.) c. I *comment* I
b. Comma (,) d. both a and b
c. Semicolon (;) 40. A quantity whose value cannot be
d. Slash (/) changed during program execution is
33. ___ are the statements that are called:
ignored by the compiler and are not a. Constant
executed. b. Variable
a. Comments c. Keyword
b. Header files d. Address
c. Variables 41. In C, are the values that
d. Functions include a decimal point.
34. The place to write comments in C a. Integer Constants
program is: b. Real Constants
a. Top of the program c. Character Constants
b. Bottom of the program d. String Constants
c. Middle of the program 42. In C, ___ are the values without a
d. Anywhere decimal point.
35. In C language, anything after II on the a. Integer Constants
same line is considered as: b. Real Constants
a. Header File c. Character Constants
b. Comment d. String Constants
c. Keywords 43. __ is a single alphabet, digit or
d. Variable special symbol enclosed within single
quotes.

PAGE: 3 OF 5]
NOTES: 10TH COMPUTER - UNIT 1 - MC S]

a. nteger eonstants a. 2
b.Real Constants b.4
c. Character Constants C. 12

d. String Constants d. 16
44. In C, character constants are written 52. char is used to declare a variable type
within: of:
a. Double quotes(") a. Integer
b. Single quotes(') b. Character
c. Exclamation points(!) c.Real
d. Pound signs(#) d. Float
45. Which of the following is a valid 53. The number of bytes used by char
example of character constant? data type in C is:
a. 'A' a. 2
b. '9' b. 1
C. '$
' C. 12

d. All d. 16
46. A location in computer memory with 54. Which of the following is not a valid
some data that can be changed is called: data type in C?
a. Constant a. float
b. Variable b. int
c. Keyword c. real
d. Address d. char
47. Variables are created in: 55. Variable names cannot begin with:
a. RAM a. Number
b.ROM b. Underscore
c. Hard disk c. Upper-case letter
d. USB d. Lower-case letter
48. The data type int stores: 56. The variable names cannot contain:
a. Whole numbers a. Digits
b. Numbers with fraction part b. Underscore
c. Comments c. Alphabets
d. Strings d. Period
49. Data type int takes___ bytes. 57. Which of the following is an invalid
a. 10 variable name?
b. 6 a.-cust-num
c.4 b. jan 2009
d. 16 c. dayOfWeek
50. Which of the following is used to d. 2dGraph
declare variables that can hold real 58. Which of the following is valid
numbers? variable name?
a int a. points_scored
b. float b. my var
c. real c. $cost
d. char d. case
51. The number of bytes used by float
data type in C is:

PAGE: 4 OF 5]
EEILM.COM]] [NOTES: 10TH COMPUTER - UNIT 1 - MCOS]]

:,9�mcnof the following is required to 61. Which of the following is an invalid


declare a variable? statement for variable declaration?
a. Comment a. unsigned int marks:
b. Variable name b. Int a, b, c;
c. Data type c. float salary:
d. Both b & c d. char x; y; z;
60. Which symbol is used to separate
each variable while declaring many 62. Which of the following C declaration
variables in one statement? statement is invalid?
a. Commas(,) a. int points_scored;
b. Colons(:) b. char grade;
c. Semicolons(;) c. float height;
d. pipes{I) d. real area;

Answers
I.a 2.a 3.b 4.a 5.d
6.d 7.d 8.c 9.a 10.b
11.a 12.a 13.a 14.b 15.a
16.c 17.b 18.b 19.a 20.a
21.d 22.b 23.a 24.c 25.d
26.a 27.b 28.c 29.c 30.a
31.a 32.c 33.a 34.d 35.b
36.b 37.d 38.b 39.d 40.a
41.b 42.a 43.c 44.b 45.d
46.b 47.a 48.a 49.c 50.b
51.b 52.b 53.b 54.c 55.a
56.d 57.d 58.a 59.d 60.a
61.d 62.d

[PAGE: 5 OF S]]

You might also like