Question 1
In C, after `#define SQR(x) x*x`, what does `SQR(2+3)` evaluate to?
Correct Answer:
11
Question 2
Which C storage class gives a local variable lifetime for the entire program while restricting its name to the block?
Correct Answer:
static
Question 3
What is printed? `int x = 5; int *p = &x; *p = 12; printf("%d", x);`
Correct Answer:
12
Question 4
In object-oriented programming, hiding an object’s representation and exposing only a controlled interface is called:
Correct Answer:
encapsulation
Question 5
The size of a C `union` with members `char c; int i; double d;` is determined by:
Correct Answer:
the size of the largest member, plus any alignment padding required by the union
Question 1
Exam overview

About this Exam

Prepare with the BCS Written Computer Science Practice Questions - Computer Science Exam practice quiz. This question bank includes 100 questions covering many, graph, instruction, block, and function. Use it to review important concepts, identify knowledge gaps, and build confidence for the related exam, course, or assessment.

More details

Additional Information

BCS Written Computer Science Practice Questions - Computer Science Exam

This practice set contains 100 questions from the matching question bank and focuses on many, graph, instruction, block, and function. Work through each question carefully, review the provided solutions, and revisit topics that need more study before your next attempt.

This is an independent study resource intended for practice and review; it is not an official examination or an endorsement by any organization named in the title.

Quiz information

Frequently Asked Questions

The complete question count is available after full access is unlocked.
No fixed duration is currently configured for this quiz.
Question explanations are included where they are available in the quiz content, helping you review the reasoning after answering.
Yes. You can retake the practice test again as you continue studying during your available access period.
After your access is confirmed, you can continue into the complete practice exam from this quiz flow.
Unless explicitly stated otherwise, this page provides independent practice material for study and exam preparation and is not the official examination itself.
Keep studying

Related Questions