Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 3 out of 24 pages
Exam (elaborations)

Computer Engineering 5

Document preview thumbnail
Preview 3 out of 24 pages

Computer Engineering 5

Content preview

1. Which of the following is used to ensure data integrity in database systems?

A. Indexing

B. Hashing

C. Transactions

D. Clustering

Answer: C) Transactions

Rationale: Transactions in databases help ensure that data remains consistent and

reliable through operations like commit and rollback.




2. In the C programming language, which of the following is used to define a constant?

A. const

B. variable

C. define

D. constant

Answer: A) const

Rationale: The const keyword is used in C to declare a constant whose value cannot be

changed during program execution.




3. The term "Cache" in computer architecture refers to:

A. A primary storage medium

,B. A temporary storage for frequently accessed data

C. A method for encrypting data

D. A secondary storage for backup purposes

Answer: B) A temporary storage for frequently accessed data

Rationale: Cache memory is a small, fast storage that holds frequently accessed data to

improve performance.




4. Which of the following is an example of a language used for web development?

A. Assembly

B. JavaScript

C. C++

D. COBOL

Answer: B) JavaScript

Rationale: JavaScript is commonly used for client-side scripting in web development.




5. In a database, a "primary key" is used to:

A. Index data for faster search

B. Uniquely identify a record

C. Provide a backup of the database

D. Relate tables together

Answer: B) Uniquely identify a record

, Rationale: A primary key uniquely identifies each record in a database table and

ensures that there are no duplicate entries.




6. What is the time complexity of binary search in the worst case?

A. O(n)

B. O(n log n)

C. O(log n)

D. O(1)

Answer: C) O(log n)

Rationale: Binary search works by dividing the search space in half at each step,

leading to a logarithmic time complexity of O(log n).




7. Which of the following is an example of a non-volatile memory?

A. RAM

B. Register

C. ROM

D. Cache

Answer: C) ROM

Rationale: ROM (Read-Only Memory) is non-volatile, meaning it retains its data even

when the power is turned off.




8. Which of the following is not a type of operating system?

Document information

Uploaded on
March 16, 2025
Number of pages
24
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
CA$15.83

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
douglasmugwe82
5.0
(1)
Sold
2
Followers
0
Items
4239
Last sold
11 months ago



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

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions