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 Unit 5 Loop Structure English Medium KPK Boards Online Mcqs MCQs With Answers
Question # 1
Which function is to desplay anything on computer screen.
Choose an answer
output
Input
Scanf
Print f
Previous
Skip
Next
Question # 2
Which functions performs commonly used mathematical calculations, string operation, imput/output operations etc.
Choose an answer
Built -in function
Library functions
Standard functions
All of these
Previous
Skip
Next
Question # 3
The values passed to a function are called.
Choose an answer
Built -in
return type
Array
Arguments
Previous
Skip
Next
Question # 4
If there are three return statements in the function body, ..... of them will be executed.
Choose an answer
One
Two
Three
First and last
Previous
Skip
Next
Question # 5
__________ means to transfer the control to another function.
Choose an answer
Calling
Defining
re-writing
Including
Previous
Skip
Next
Question # 6
A function can have multiple parameters, bu tit cannot return more that ..... values.
Choose an answer
One
Two
Three
Four
Previous
Skip
Next
Question # 7
How many types of function.
Choose an answer
1
2
3
4
Previous
Skip
Next
Question # 8
Dividing the program into multiple functions improves the ....... of the program.
Choose an answer
Readability
Open
Read
Write
Previous
Skip
Next
Question # 9
Which of the following are advantages of using functions.
Choose an answer
Reusability of code
Separation of tasks
Readability of code
All of these
Previous
Skip
Next
Question # 10
Which is a block of statements that performs a particular task.
Choose an answer
Function
Program
Routine
Block
Previous
Skip
Next
Question # 11
If the definition of called function appears after teh definition of calling function, then..... is required.
Choose an answer
Function signature
Call
Read
Function
Previous
Skip
Next
Question # 12
Which function that is used to take input from the user.
Choose an answer
output
Input
Scan f
Print f
Previous
Skip
Next
Question # 13
Which are variables of different data types that are used to receive the values passed t the function as input.
Choose an answer
Value
Input
Price
Parameter
Previous
Skip
Next
Question # 14
The __ of the function is the data type of the value returned by function.
Choose an answer
Return type
Input
Output
Value
Previous
Skip
Next
Question # 15
If the definition of called function appears before the definition of calling functiion, then ...... is not required.
Choose an answer
Function signature
Call
Read
Function
Previous
Skip
Next
Question # 16
The ____ of the function shold be related to its task.
Choose an answer
Name
Setup
Routine
Work
Previous
Skip
Next
Back