More Classes
5th Class
6th Class
7th Class
8th Class
9th Class
10th Class
11th Class
12th Class
NAT I
NAT II
CSS
IQ
General Knowledge
MDCAT
ECAT
GAT General
GAT Subject
Other Links
Go to Home
Online Tests
Computer Science 10th Class English Medium Chapter 1 Online Test MCQs With Answers
Question # 1
Which of the following are types of constant ?
Choose an answer
Integer constants
realconstants
characterconstants
all of these
Previous
Skip
Next
Question # 2
Which name must begin with a letter or an underscore, it cannot begin with a digit ?
Choose an answer
character
variable
constant
string
Previous
Skip
Next
Question # 3
Keyword unsigned in the used to declare an ________ integer:
Choose an answer
signed
negative integer
unsigned
originalinteger
Previous
Skip
Next
Question # 4
Which keyword is used to declare the floating type variable ?
Choose an answer
int
float
positive
char
Previous
Skip
Next
Question # 5
A __________ has a graphical user interface (GUI), meaning that a user can interact with it using windows and buttons to provide input and get output:
Choose an answer
IDE
programming
constant
EDA
Previous
Skip
Next
Question # 6
How many types of constant ?
Choose an answer
3
1
2
4
Previous
Skip
Next
Question # 7
________include specifying variable's data type and giving it a valid name:
Choose an answer
identifier
variable declaration
formula
constant
Previous
Skip
Next
Question # 8
Single-line comments start with:
Choose an answer
//
==
??
&&
Previous
Skip
Next
Question # 9
Header files have extension:
Choose an answer
.c
.h
.doc
.ppt
Previous
Skip
Next
Question # 10
software that provides a programming environment and facilitates the programmer is writing and executing computer programs is known as:
Choose an answer
IDE
block
designer
software
Previous
Skip
Next
Question # 11
We include header files in our program by writing the include statements at __________ of program:
Choose an answer
top
middle
end
section
Previous
Skip
Next
Question # 12
These are the values without a decimal point:
Choose an answer
integer constants
stringconstants
characterconstants
singleconstants
Previous
Skip
Next
Question # 13
Each statement ends with:
Choose an answer
;
:
=
,
Previous
Skip
Next
Question # 14
Which section contains header files ?
Choose an answer
header section (Link section)
main section
reservesection
bodysection
Previous
Skip
Next
Question # 15
Which data type is used to store a real number ?
Choose an answer
float
negative integer
unsigned
original integer
Previous
Skip
Next
Question # 16
Which keyword is used for integer data type ?
Choose an answer
int
float
char
double
Previous
Skip
Next
Question # 17
Multi-line comments start with;
Choose an answer
?* and end *?
/==/
/??/
/*and end at */
Previous
Skip
Next
Question # 18
Words which have predefined meaning is known as:
Choose an answer
reserved words
keywords
both a and b
syntax
Previous
Skip
Next
Question # 19
Which of the following is not a valid variable name ?
Choose an answer
height
9A
f_name
average
Previous
Skip
Next
Question # 20
Main screen of an ______ where we can write our programs:
Choose an answer
DBA
EDP
IDE
editor
Previous
Skip
Next
Back