100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

CAIE 9701 PAPER 3 2024 COMPLETE QUESTIONS AND ANSWERS WITH VERIFIED SOLUTION 6 (5)

Rating
-
Sold
-
Pages
20
Grade
A+
Uploaded on
28-03-2025
Written in
2024/2025

CAIE 9701 PAPER 3 2024 COMPLETE QUESTIONS AND ANSWERS WITH VERIFIED SOLUTION 6 (5)

Institution
CAIE
Course
CAIE










Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
CAIE
Course
CAIE

Document information

Uploaded on
March 28, 2025
Number of pages
20
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

CAIE 9701 PAPER 3 2024 COMPLETE QUESTIONS AND
ANSWERS WITH VERIFIED SOLUTION

1. Which of the following statements about object-oriented
programming (OOP) is correct?
A. Objects in OOP cannot be modified after creation.
B. OOP encourages the use of inheritance and polymorphism.
C. OOP only supports procedural programming.
D. All OOP classes must implement interfaces.
Answer: B) OOP encourages the use of inheritance and polymorphism.
Rationale: Object-oriented programming promotes concepts like
inheritance (reusing code) and polymorphism (the ability to use objects
of different classes through the same interface).

2. Which of the following is a correct use of the SQL 'JOIN' statement?
A. To combine rows from two or more tables based on a related
column.
B. To update data in a table.
C. To delete a table from a database.
D. To define the structure of a table.
Answer: A) To combine rows from two or more tables based on a
related column.
Rationale: The JOIN statement is used in SQL to combine data from
two or more tables based on a common column, typically a foreign key.

3. Which of the following best describes the concept of 'encapsulation'
in object-oriented programming?
A. The ability of different classes to share data.
B. The ability to create objects from multiple classes.
C. The ability to hide the internal state of an object and only expose
methods to interact with it.

,D. The ability to override methods in a subclass.
Answer: C) The ability to hide the internal state of an object and only
expose methods to interact with it.
Rationale: Encapsulation involves bundling data and methods that
operate on that data into a single unit (a class), while hiding the
internal state and only exposing necessary methods.

4. Which of the following algorithms is an example of a divide and
conquer algorithm?
A. Insertion Sort
B. Quick Sort
C. Selection Sort
D. Bubble Sort
Answer: B) Quick Sort
Rationale: Quick Sort is a divide and conquer algorithm because it
divides the array into subarrays, recursively sorts them, and then
combines the results.

5. What is the time complexity of the bubble sort algorithm?
A. O(n)
B. O(n^2)
C. O(log n)
D. O(n log n)
Answer: B) O(n^2)
Rationale: The bubble sort algorithm has a time complexity of O(n^2)
because it requires multiple passes through the data, with each pass
involving comparisons of adjacent elements.

6. What is the primary use of a 'middleware' in software development?
A. To directly manage user interfaces.
B. To handle database queries.

, C. To provide communication services between software components
or systems.
D. To store files and media in the cloud.
Answer: C) To provide communication services between software
components or systems.
Rationale: Middleware acts as a bridge between different software
components or systems, enabling them to communicate effectively.

7. Which of the following is true about the insertion sort algorithm?
A. It always has a time complexity of O(n log n).
B. It is efficient for large datasets.
C. It is an in-place sorting algorithm.
D. It requires a large amount of extra space.
Answer: C) It is an in-place sorting algorithm.
Rationale: Insertion sort is an in-place algorithm, meaning it sorts the
array without needing extra space for another array. Its time
complexity is O(n^2), making it inefficient for large datasets.

8. In a relational database, what does the term 'foreign key' refer to?
A. A column that is unique within the database
B. A column that links two tables together
C. A column that can have multiple NULL values
D. A column that stores large text data
Answer: B) A column that links two tables together
Rationale: A foreign key is a column in one table that refers to the
primary key in another table, establishing a relationship between them.

9. Which of the following operations is performed by a compiler?
A. Fetching data from memory
B. Translating high-level language code to machine code
C. Managing input/output devices
$11.49
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
douglasmugwe82
5.0
(1)

Get to know the seller

Seller avatar
douglasmugwe82 Teachme2-tutor
View profile
Follow You need to be logged in order to follow users or courses
Sold
2
Member since
1 year
Number of followers
0
Documents
4239
Last sold
2 months ago
fully answered questions and answer

fully answered questions and answer

5.0

1 reviews

5
1
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions