Which of these is a valid C expression?
A
a + b *
B
(a + b) * c
Correct answer
C
a + * b
D
a b +
Correct answer
B. (a + b) * c
10 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 + b) * c is valid because parentheses group the addition before multiplication. Missing semicolons, unmatched brackets, and undefined operators cause syntax errors.
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 The process of converting an algorithm into a program is called: Next MCQ › The loop that is best when the number of iterations is known in advance is: