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 Online Test MCQs With Answers
Question # 1
Choose an answer
a++;
a--;
both (a) and (b)
none
Previous
Skip
Next
Question # 2
Single-line comments start with:
Choose an answer
//
==
??
&&
Previous
Skip
Next
Question # 3
Which of the following is a decision making statement ?
Choose an answer
if
getch()
getche()
break
Previous
Skip
Next
Question # 4
Print f and scanf are examples of ...... function.
Choose an answer
User
Programmer
Common
Built in function
Previous
Skip
Next
Question # 5
If we want to assocate more than one statements to an if statement, then they need to be enclosed inside a.
Choose an answer
()
{ }
*
:
Previous
Skip
Next
Question # 6
Which is unary operator ?
Choose an answer
Previous
Skip
Next
Question # 7
Any single small case letter, upper case letter, digit, punctuation mark, special symbol enclosed within ' ' is considered:
Choose an answer
integerconstants
stringconstants
characterconstants
singleconstants
Previous
Skip
Next
Question # 8
Statements that are ignored by the compiler and do not get executed:
Choose an answer
read only
comments
enclosed in braces
curly braces
Previous
Skip
Next
Question # 9
Which are variables of different data types that are used to receive the values passed t the function as input.
Choose an answer
Value
Input
Price
Parameter
Previous
Skip
Next
Question # 10
Which Statements is used ot execute not set of instructions, if a particular condition is true and another set of instructions if the condition is false.
Choose an answer
if
else
if else
loop
Previous
Skip
Next
Question # 11
Which operator makes it true, if it is false and false if it true ?
Choose an answer
Previous
Skip
Next
Question # 12
__________ statements describe the sequence in which statements of the program should be executed:
Choose an answer
loop
conditional
control
all
Previous
Skip
Next
Question # 13
Software that facilitates programmers in writing computer programs is known as ___________:
Choose an answer
a complier
an editor
an IDE
a debugger
Previous
Skip
Next
Question # 14
Which library file include in header section of program, when using getch() function ?
Choose an answer
conio.h
stdio.h
math.h
string.h
Previous
Skip
Next
Question # 15
Includes statements are written in ________ section:
Choose an answer
header
main
comments
print
Previous
Skip
Next
Question # 16
These are the values including a decimal point:
Choose an answer
real constants
string constants
characterconstants
singleconstants
Previous
Skip
Next
Question # 17
_______ cannot be declared unless we mention its data type:
Choose an answer
variable
constant
string
declaring a variable
Previous
Skip
Next
Question # 18
The ________ can be initialized at the time of declaration or after declaration:
Choose an answer
character
data type
variable
constant
Previous
Skip
Next
Question # 19
In C language main() is a:
Choose an answer
function
code
editor
library
Previous
Skip
Next
Question # 20
A _________ cannot be used as a variable name:
Choose an answer
reserved word
simple words
stringwords
reserved variable
Previous
Skip
Next
Back