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
Input of a function are called __________ of the function.
Choose an answer
Function
Program
Reader
Parameters
Previous
Skip
Next
Question # 2
We can call a suer -defined function from another user defined function, same as we call other functions in ........... function.
Choose an answer
Main
Call
Define
Out
Previous
Skip
Next
Question # 3
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 # 4
Which function that is used to take input from the user.
Choose an answer
output
Input
Scan f
Print f
Previous
Skip
Next
Question # 5
The values passed to a function are called.
Choose an answer
Built -in
return type
Array
Arguments
Previous
Skip
Next
Question # 6
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 # 7
A function can have multiple parameters, bu tit cannot return more that ..... values.
Choose an answer
One
Two
Three
Four
Previous
Skip
Next
Question # 8
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 # 9
A ____ is a block of statements that gets some inputs and provides some output.
Choose an answer
Function
Program
Reader
Printer
Previous
Skip
Next
Question # 10
The advantages of using functions are.
Choose an answer
Readability
Reusability
Easy debugging
All
Previous
Skip
Next
Question # 11
The set of statement whihc are excuted in the function to fulfill the specified task.
Choose an answer
Body of the function
Calling the function
Opening a function
Closing the function
Previous
Skip
Next
Question # 12
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 # 13
Dividing the program into multiple functions improves the ....... of the program.
Choose an answer
Readability
Open
Read
Write
Previous
Skip
Next
Question # 14
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 # 15
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 # 16
Which is wrong return statement.
Choose an answer
Return x
Return (x,y)
Retrun (4,5)
Both b and c
Previous
Skip
Next
Back