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
---------------- are written before the main () function
Choose an answer
C statements
preprocessor directives
linking instructions
both a and b
Previous
Skip
Next
Question # 2
On successfully closing a file the f close () returns
Choose an answer
Null
0
1
File pointer
Previous
Skip
Next
Question # 3
The body of while loop with multiple statements ends with:
Choose an answer
Right bracket ]
Right brace }
Comma ,
Semi colon ;
Previous
Skip
Next
Question # 4
The number of characters in fixed-length field is:
Choose an answer
Constant
Variable
10
100
Previous
Skip
Next
Question # 5
The number of bytes used by int data type in C is:
Choose an answer
2
8
12
16
Previous
Skip
Next
Question # 6
Who developed C?
Choose an answer
Von-Meumann
Al-Khuwarizmi
Charles Babbage
Dennis Ritchie
Previous
Skip
Next
Question # 7
The programmer usually enters source code into a computer using:
Choose an answer
Compiler
Text editor
Debugger
Linker
Previous
Skip
Next
Question # 8
Which of the following function is used to read a string from a file
Choose an answer
puts()
Pute()
fputs()
fgets()
Previous
Skip
Next
Question # 9
When we make any modification in a relation it is called
Choose an answer
Insertion anomaly
Deletion anomaly
Modification anomaly
Both a and b
Previous
Skip
Next
Question # 10
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 # 11
Int type variable use -------------------- bytes in memory
Choose an answer
2
4
6
8
Previous
Skip
Next
Question # 12
Which of the following operators has lowest precedence
Choose an answer
!
+
=
=
Previous
Skip
Next
Question # 13
A factor consider when choosing a file organization is
Choose an answer
Fast data retrieval
Security
Efficient storage
All of them
Previous
Skip
Next
Question # 14
Each set of related items in a table is called:
Choose an answer
Table
Record
Field
Query
Previous
Skip
Next
Question # 15
The machine language instructions are written in ______
Choose an answer
Keyboard
Binary code
C
None of them
Previous
Skip
Next
Question # 16
A data model is :
Choose an answer
A logical representation of the structure of the database
Shown as an entity-relationship diagram
Transformed into tables and relationships
All
Previous
Skip
Next
Question # 17
SQL is used for:
Choose an answer
Data definition
Data manipulaton
Data control
All
Previous
Skip
Next
Question # 18
The format specifier % d is used for
Choose an answer
Int
Unsigned short
Unsigned float
Unsigned long int
Previous
Skip
Next
Question # 19
The data or information that describes an entity is called:
Choose an answer
Attribute
Data item
Record
Tuple
Previous
Skip
Next
Question # 20
% f is used for
Choose an answer
Double
Float
Integer
Short
Previous
Skip
Next
Question # 21
In relational data base, a table is also called:
Choose an answer
Tuple
Relation
File
Schema
Previous
Skip
Next
Question # 22
The statement printf ("%10d",n) will display the value of n:
Choose an answer
Right justified in ten-character space
Left justified in ten-character space
Center-justified in ten-character space
None of these
Previous
Skip
Next
Back