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
10th Class Computer Science English Medium KPK Boards Online Mcqs MCQs With Answers
Question # 1
Main section consists of a __________ function:
Choose an answer
main()
body()
both a and b
center()
Previous
Skip
Next
Question # 2
Which function used to read a character from user ?
Choose an answer
printf
getch()
count
string
Previous
Skip
Next
Question # 3
Which of the following is a decision making statement ?
Choose an answer
if
getch()
getche()
break
Previous
Skip
Next
Question # 4
Which of the following is not a type of control statements in C language.
Choose an answer
Sequential Control Statements
Selection control statements
Repetitio contorl statements
Error Control Statements
Previous
Skip
Next
Question # 5
In which control all the statments are executed in the given dequence.
Choose an answer
Error Control Statements
Selection ctonrol statemetns
Repetition cotrol statements
Sequential Control Statements
Previous
Skip
Next
Question # 6
Which of the following is the condition to check a is a factor of c ?
Choose an answer
a % c == 0
c % a == 0
a*c == 0
a+c == 0
Previous
Skip
Next
Question # 7
Which escape sequence is used to print the output on multiple lines ?
Choose an answer
\c
\t
\n
\r
Previous
Skip
Next
Question # 8
_______ cannot be declared unless we mention its data type:
Choose an answer
variable
constant
string
declaring a variable
Previous
Skip
Next
Question # 9
Which operator is used to assign a value to a variable ?
Choose an answer
Assignmentoperator
arithmeticoperator
logicaloperator
all of these
Previous
Skip
Next
Question # 10
Which section contains header files ?
Choose an answer
header section (Link section)
main section
reservesection
bodysection
Previous
Skip
Next
Question # 11
All the statements inside these ______ make the body of main function:
Choose an answer
{ }
()
??
==
Previous
Skip
Next
Question # 12
How many types of selection structure ?
Choose an answer
1
3
2
4
Previous
Skip
Next
Back