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
________include specifying variable's data type and giving it a valid name:
Choose an answer
identifier
variable declaration
formula
constant
Previous
Skip
Next
Question # 2
Which operator assigns the result of expression on right side to the variable on left side ?
Choose an answer
==
=
*
( )
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 help us to understand our own code even after years of writing it?
Choose an answer
common words
comments
end sensitive
section sensitive
Previous
Skip
Next
Question # 5
Each statement ends with:
Choose an answer
;
:
=
,
Previous
Skip
Next
Question # 6
scanf is a __________ in C programming language:
Choose an answer
keyboard
library
function
none of them
Previous
Skip
Next
Question # 7
An______ is a data structure that can hold multiple values of same data type.
Choose an answer
Loop
Array
For loop
Index
Previous
Skip
Next
Question # 8
In If statement, what happens if condition is false ?
Choose an answer
program crashes
index out of bound error
further code executes
compiler asks to change condition
Previous
Skip
Next
Question # 9
Let the following part of code, what will be the value of variable an after execution:
int a = 4;
float b= 2.2;
a = a * b;
Choose an answer
8.8
8
8.2
8.0
Previous
Skip
Next
Question # 10
Computer programs are written in languages called:
Choose an answer
developer
software
engineer
programming languages
Previous
Skip
Next
Question # 11
Which operator checks whether right and left operands are equal or not ?
Choose an answer
==
=
?
+-
Previous
Skip
Next
Question # 12
Which of the following is a valid line of code ?
Choose an answer
int = 20;
grade = 'A';
line = this is a line,
none of these
Previous
Skip
Next
Question # 13
Which of the following is header file ?
Choose an answer
void main()
getch()
#include<stdio.h>
none of these
Previous
Skip
Next
Back