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 Ics Part 2 Online Test MCQs With Answers
Question # 1
Which escape sequence is used to erase a character left to the cursor position?
Choose an answer
\b
\del
\f
\c
Previous
Skip
Next
Question # 2
The body of while loop with multiple statements ends with:
Choose an answer
Right bracket ]
Right brace }
Comma ,
Semi colon ;
Previous
Skip
Next
Question # 3
If we want a user to enter exactly 20 values, which loop would be the best to use?
Choose an answer
While
Do-while
For
Infinite
Previous
Skip
Next
Question # 4
Microsoft access saves the database with the extension:
Choose an answer
.mdb
.msdb
.madb
.mxls
Previous
Skip
Next
Question # 5
A form that contains the sub form is called________
Choose an answer
Form
Main form
Report
None of them
Previous
Skip
Next
Question # 6
When is for loop more appropriate then while loop?
Choose an answer
The termination condition is known in advance
The number of iterations is not known in advance
The loop should be executed only once
The loop should be executed at least once
Previous
Skip
Next
Question # 7
A candidate key is
Choose an answer
Primary key
The primary key selected to be the key of relation
A group attribute that can be the primary key
All of them
Previous
Skip
Next
Question # 8
A for statement contains three expressions: Initialization, test and:
Choose an answer
Assignment
Validation
Increment / decrement
All
Previous
Skip
Next
Question # 9
Optional is represented by
Choose an answer
0
1
2
none of these
Previous
Skip
Next
Question # 10
Which of the following is not a good primary key
Choose an answer
Social security number
Order number
Zip code
STD ID number
Previous
Skip
Next
Question # 11
The loop which never ends is called:
Choose an answer
Infinite loop
Running loop
Continuous loop
Nested loop
Previous
Skip
Next
Question # 12
Which of the following loop is called counter loop?
Choose an answer
For
While
Do-while
All
Previous
Skip
Next
Question # 13
Which of the following syntax is used to include header file?
Choose an answer
#include<name of header file>
#include"name of header file"
Both a or b
None of these
Previous
Skip
Next
Question # 14
An attribute is also known as a:
Choose an answer
Table
Row
Relation
Field
Previous
Skip
Next
Question # 15
Escape sequence starts with the character
Choose an answer
%
/
#
none
Previous
Skip
Next
Question # 16
In Access, the structure of a table is created in -------------- view
Choose an answer
design view
data sheet view
a and b
none of them
Previous
Skip
Next
Question # 17
SQL is used for
Choose an answer
data definition
data manipulation
a and b
searching record
Previous
Skip
Next
Question # 18
Which of the following operations has lowest precedence?
Choose an answer
!
+
=
==
Previous
Skip
Next
Back