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
An attribute that uniquely identify each row in a relation is called
Choose an answer
Column
Foreign
Primary key
Duplicate key
Previous
Skip
Next
Question # 2
Which of the following mode open only an existing file for both reading and writing
Choose an answer
"W"
"W+"
"r+"
"a+"
Previous
Skip
Next
Question # 3
The number of bytes used by double data type in C is:
Choose an answer
2 (8) 8
12
6
Previous
Skip
Next
Question # 4
A database containing all students in a class would store the information of individual students in:
Choose an answer
Record
Field
Cell
File
Previous
Skip
Next
Question # 5
Which of the following is a compiler directive?
Choose an answer
#include<stdio.h>
Using namespace std;
main()
All
Previous
Skip
Next
Question # 6
The high-level languages are ----------------
Choose an answer
machine depdendent
not machine dependent
expensive
more easier to learn
Previous
Skip
Next
Question # 7
What is the final value of x after executing the following code:
For (int x=0; x<10; X++)
Choose an answer
10
9
0
1
Previous
Skip
Next
Question # 8
a+=b is equivalent to
Choose an answer
a+=b
a=+b
a=a+b
b=b+a
Previous
Skip
Next
Question # 9
Data is a combination of
Choose an answer
Fact & figure
Constant
Numbers
Special characters
Previous
Skip
Next
Question # 10
The foreign key is found in
Choose an answer
parent table
dependent table
pivot table
index table
Previous
Skip
Next
Question # 11
A person, place, thing or event about which data is kept in the database is called:
Choose an answer
Attribute
Field
Record
Entity
Previous
Skip
Next
Question # 12
Which of the following is a valid format specifier
Choose an answer
%10d
%7.2f
%-7f
all
Previous
Skip
Next
Question # 13
Any thing about which you store information in the database is known as:
Choose an answer
File
Inherent
Entity
Relation
Previous
Skip
Next
Question # 14
The SQL statement to create a view is:
Choose an answer
CREATE VIEW
MAKE VIEW
SELECT VIEW
INSERT VIEW
Previous
Skip
Next
Question # 15
Which is an example of multiple branches form single expression?
Choose an answer
If statement
Switch statement
While loop
All
Previous
Skip
Next
Question # 16
In relational database a table is also called a:
Choose an answer
Tuple
Relation
File
Schema
Previous
Skip
Next
Question # 17
Relational operators allow you to _____________ numbers.
Choose an answer
Compare
Add
Multiply
Divide
Previous
Skip
Next
Question # 18
Which of the following is NOT legal element of control string in printf statement?
Choose an answer
Ordinary characters
Escape sequence
Format specifier
Variables
Previous
Skip
Next
Back