0% found this document useful (0 votes)
8 views

Practice Questions Computer Architecture Programming

The document contains practice questions covering various topics in computer architecture and programming concepts, including CPU components, instruction cycles, types of computer architecture, high-level languages, parameter passing techniques, and programming language concepts. Each section includes multiple-choice questions with a focus on fundamental knowledge in these areas. An answer key is provided at the end for reference.

Uploaded by

eseosaosaghae4
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views

Practice Questions Computer Architecture Programming

The document contains practice questions covering various topics in computer architecture and programming concepts, including CPU components, instruction cycles, types of computer architecture, high-level languages, parameter passing techniques, and programming language concepts. Each section includes multiple-choice questions with a focus on fundamental knowledge in these areas. An answer key is provided at the end for reference.

Uploaded by

eseosaosaghae4
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

Practice Questions on Computer Architecture & Programming Concepts

1. Computer Architecture: Basic Components

1. Which part of the CPU performs arithmetic and logical operations?

A. Control Unit

B. ALU

C. Registers

D. Cache

2. What does RAM stand for?

A. Random Access Memory

B. Read Access Memory

C. Read-Only Memory

D. Run Access Memory

3. Which bus carries memory addresses?

A. Data Bus

B. Address Bus

C. Control Bus

D. Power Bus

4. The control unit is responsible for:

A. Executing instructions

B. Directing operations inside the CPU

C. Storing data

D. Input/output control

5. Which memory is non-volatile?

A. RAM

B. ROM

C. Cache

D. Registers

2. Instruction Cycle (Fetch-Decode-Execute)

6. What is the first step of the instruction cycle?

A. Decode
Practice Questions on Computer Architecture & Programming Concepts

B. Execute

C. Fetch

D. Store

7. During decoding, the control unit:

A. Fetches the next instruction

B. Interprets the instruction

C. Performs arithmetic

D. Stores the result

8. The ALU is mainly involved during:

A. Fetch

B. Decode

C. Execute

D. Store

9. In which step are results stored back to memory?

A. Fetch

B. Decode

C. Execute

D. Store

10. The instruction cycle repeats until:

A. All instructions are executed

B. The power is off

C. CPU overheats

D. None of the above

3. Types of Computer Architecture

11. Von Neumann architecture uses:

A. Separate memory for instructions and data

B. Single memory for instructions and data

C. No memory

D. Multiple CPUs
Practice Questions on Computer Architecture & Programming Concepts

12. Harvard architecture features:

A. Separate memory for instructions and data

B. Single memory for instructions and data

C. No memory

D. Multiple CPUs

13. Which architecture uses a reduced instruction set?

A. RISC

B. CISC

C. Harvard

D. Von Neumann

14. CISC stands for:

A. Complex Instruction Set Computer

B. Computer Instruction Set Code

C. Central Instruction System Controller

D. Complex Integrated System Code

15. Which architecture is common in ARM processors?

A. Von Neumann

B. Harvard

C. RISC

D. CISC

4. High-Level Languages

16. Which of the following is NOT a high-level language?

A. Python

B. C

C. Assembly

D. Java

17. High-level languages are:

A. Closer to machine code

B. Easier for humans to read


Practice Questions on Computer Architecture & Programming Concepts

C. Hard to maintain

D. Hardware dependent

18. Which language is platform-independent due to its virtual machine?

A. C

B. Java

C. Assembly

D. Python

19. Compilers translate code from high-level languages into:

A. Machine code

B. Assembly code

C. High-level code

D. None of the above

20. Interpreters execute code:

A. Line by line

B. All at once

C. Only functions

D. Only classes

5. Parameter Passing Techniques

21. In pass by value, the function receives:

A. The actual variable

B. A copy of the variable

C. The memory address

D. A pointer

22. Pass by reference allows functions to:

A. Modify the original variable

B. Modify a copy

C. Only read variables

D. None of the above

23. Which language commonly uses pointers for parameter passing?


Practice Questions on Computer Architecture & Programming Concepts

A. Python

B. Java

C. C

D. JavaScript

24. Pass by value-result copies values:

A. Only in

B. At the start and end

C. Never

D. Only at the end

25. Pass by name is also called:

A. Delayed evaluation

B. Immediate evaluation

C. Pointer passing

D. Copy-in copy-out

6. Programming Language Concepts

26. Which is NOT a low-level language?

A. Assembly

B. Machine code

C. Python

D. Binary code

27. The process of converting high-level code to machine code is called:

A. Interpretation

B. Compilation

C. Execution

D. Decoding

28. Which of the following is a scripting language?

A. Java

B. Python

C. Assembly
Practice Questions on Computer Architecture & Programming Concepts

D. C

29. Which language is known for system-level programming?

A. Python

B. C

C. JavaScript

D. HTML

30. Which part of the compiler checks syntax?

A. Code generator

B. Parser

C. Lexer

D. Optimizer
Practice Questions on Computer Architecture & Programming Concepts

Answer Key

Question 1: B
Question 2: A
Question 3: B
Question 4: B
Question 5: B
Question 6: C
Question 7: B
Question 8: C
Question 9: D
Question 10: A
Question 11: B
Question 12: A
Question 13: A
Question 14: A
Question 15: C
Question 16: C
Question 17: B
Question 18: B
Question 19: A
Question 20: A
Question 21: B
Question 22: A
Question 23: C
Question 24: B
Question 25: A
Question 26: C
Question 27: B
Question 28: B
Question 29: B
Practice Questions on Computer Architecture & Programming Concepts

Question 30: B

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy