A function in C is:
A
A loop
B
A reusable block of code
Correct answer
C
A variable
D
A data type
Correct answer
B. A reusable block of code
11 views
⚔️
Challenge a friend on Computer Science FBISE Class 10
Same MCQs, timed, live leaderboard. Send the link on WhatsApp – no sign-up needed.
Create challenge
Explanation
A function is a reusable block of code that performs a specific task. It can take parameters and return a value. Functions help avoid repetition and make programs modular.
Reference
Asked in: Matric,FBISE
Doubts & discussionNot sure why the answer is B? Ask here and get an explanation.
Ask a doubt about this MCQ
‹ Previous MCQ What is the output of printf("%d", 5 / 2); in C? Next MCQ › The keyword used to define a constant in C is: