Advanced Computer Architecture MCQs with Answers
Practice important Advanced Computer Architecture MCQs with answers and explanations.
Chapter: 1
Q1:
What does a Karnaugh Map help to simplify in Boolean algebra?
A. Logic gates
B. Boolean expressions
C. Arithmetic operations
D. Digital circuits
Correct Answer:
B
Chapter: 1
Q2:
Social networks enable users to communicate with each other by posting ___.
A. Information, comments, messages, images, and videos
B. Technical documents
C. Programming code
D. Commercial advertisements
Correct Answer:
A
Chapter: 1
Q3:
Which of the following is NOT a Boolean operator?
A. AND
B. OR
C. XOR
D. ADD
Correct Answer:
D
Chapter: 1
Q4:
What is the primary purpose of encryption in network security?
A. Protect data integrity
B. Protect data confidentiality
C. Speed up data transmission
D. Reduce network traffic
Correct Answer:
B
Chapter: 1
Q5:
A computer's operating system primarily manages which of the following?
A. Memory and CPU
B. Web applications
C. Database queries
D. Hardware sales
Correct Answer:
A
Chapter: 1
Q6:
The time complexity of binary search is ____.
A. O(n)
B. O(n^2)
C. O(log n)
D. O(1)
Correct Answer:
C
Chapter: 1
Q7:
Which of the following data structures is used for implementing recursion?
A. Stack
B. Queue
C. Linked list
D. Array
Correct Answer:
A
Chapter: 1
Q8:
Fill in the blank: A _______ is used to uniquely identify a website.
A. IP address
B. URL
C. Hostname
D. Port number
Correct Answer:
B
Chapter: 1
Q9:
The Python command to print "Hello, World!" is ____.
A. console.log("Hello, World!")
B. echo "Hello, World!"
C. printf("Hello, World!")
D. print("Hello, World!")
Correct Answer:
D
Chapter: 1
Q10:
HTML stands for ____.
A. HyperText Markup Language
B. HighText Machine Language
C. HyperText Media Language
D. HyperText Master Language
Correct Answer:
A
Chapter: 1
Q11:
Which one of the following is a valid variable name in Python?
A. 1variable
B. variable1
C. $variable
D. int
Correct Answer:
B
Chapter: 1
Q12:
The ______ operator in Python is used to raise a number to a power.
A. +
B. -
C. *
D. **
Correct Answer:
D
Chapter: 1
Q13:
Which of the following is NOT a JavaScript data type?
A. Number
B. String
C. Boolean
D. Double
Correct Answer:
D
Chapter: 1
Q14:
To declare a constant variable in JavaScript, we use the keyword ____.
A. var
B. const
C. let
D. static
Correct Answer:
B
Chapter: 1
Q15:
Fill in the blank: The SQL command used to retrieve data from a database is ____.
A. INSERT
B. UPDATE
C. DELETE
D. SELECT
Correct Answer:
D
Chapter: 1
Q16:
Which of the following is used for inline styling in HTML?
A. <script>
B. <style>
C. style attribute
D. <head>
Correct Answer:
C
Chapter: 1
Q17:
In CSS, the padding property controls ____.
A. The space inside an element
B. The space outside an element
C. The width of an element
D. The height of an element
Correct Answer:
A
Chapter: 1
Q18:
A switch case statement in C language works with ____.
A. Integers
B. Floats
C. Strings
D. Arrays
Correct Answer:
A
Chapter: 1
Q19:
What will be the output of the following Python code: print(2**3)?
A. 6
B. 8
C. 9
D. 12
Correct Answer:
B
Chapter: 1
Q20:
Fill in the blank: In object-oriented programming, _______ refers to the bundling of data with methods.
A. Inheritance
B. Abstraction
C. Polymorphism
D. Encapsulation
Correct Answer:
D