Advanced Computer Architecture MCQs with Answers
Practice important Advanced Computer Architecture MCQs with answers and explanations.
Multiple Choice Questions
Q11: Which one of the following is a valid variable name in Python?
- A: 1variable
- B: variable1
- C: $variable
- D: int
View Answer
B
Q12: The ______ operator in Python is used to raise a number to a power.
- A: +
- B: -
- C: *
- D: **
View Answer
D
Q13: Which of the following is NOT a JavaScript data type?
- A: Number
- B: String
- C: Boolean
- D: Double
View Answer
D
Q14: To declare a constant variable in JavaScript, we use the keyword ____.
- A: var
- B: const
- C: let
- D: static
View Answer
B
Q15: Fill in the blank: The SQL command used to retrieve data from a database is ____.
- A: INSERT
- B: UPDATE
- C: DELETE
- D: SELECT
View Answer
D
Q16: Which of the following is used for inline styling in HTML?
- A:
- B:
- C: style attribute
- D:
View Answer
C
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
View Answer
A
Q18: A switch case statement in C language works with ____.
- A: Integers
- B: Floats
- C: Strings
- D: Arrays
View Answer
A
Q19: What will be the output of the following Python code: print(2**3)?
- A: 6
- B: 8
- C: 9
- D: 12
View Answer
B
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
View Answer
D