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
_______ statement excutes the set of statements under if statements if the condition is true and execute the set of statemetns under else other wise,
Choose an answer
if - else
condition
while
compound
Previous
Skip
Next
Question # 2
Input of a function are called __________ of the function.
Choose an answer
Function
Program
Reader
Parameters
Previous
Skip
Next
Question # 3
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 # 4
Which can be thought of as grammar of a programming language ?
Choose an answer
syntax
rules
english
programming
Previous
Skip
Next
Question # 5
Each elemet of an array has an _____ that can be used with the array name as array __ name.
Choose an answer
Index
array
for loop
simple variable
Previous
Skip
Next
Question # 6
All the statements inside these ______ make the body of main function:
Choose an answer
{ }
()
??
==
Previous
Skip
Next
Question # 7
How many types of comments in C language are ?
Choose an answer
1
2
3
6
Previous
Skip
Next
Question # 8
The statements which help us to decide whihc statements should be executed next, on the basis of conditions, are called.
Choose an answer
Error Control Statements
Selection statements
Sequential Control Statements
Repetition Control Statements
Previous
Skip
Next
Question # 9
The __ of the function is the data type of the value returned by function.
Choose an answer
Return type
Input
Output
Value
Previous
Skip
Next
Question # 10
__________ part of for loop is executed first:
Choose an answer
condition
body
intialization
increment/decrement
Previous
Skip
Next
Question # 11
Single-line comments start with:
Choose an answer
//
==
??
&&
Previous
Skip
Next
Question # 12
Which extension is used to save C language program ?
Choose an answer
.doc
.c
.xls
.dat
Previous
Skip
Next
Question # 13
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
Back