What is Big O notation used for?
A) Measuring the actual runtime of a program
B) Describing the worst-case growth of an algorithm
C) Counting the number of lines of code
D) Measuring memory usage in bytes
Which of these is a loop control structure in Python?
A) if-else
B) for
C) switch
D) goto
In an array, what is the time complexity to access an element by index?
A) O(1)
B) O(n)
C) O(log n)
D) O(n^2)
Which of these is an example of a conditional statement in Python?
A) while x < 5
B) if x > 10:
C) for i in rangeIn a relational database, what does a primary key do?
A) It links two tables together
B) It ensures each record is unique
C) It stores large binary data
D) It is used for indexing only
Which of the following is a high-level programming language?
A) Assembly
B) C
C) Verilog
D) Python
What is the main purpose of an operating system?
A) Provide a user interface
B) Manage hardware resources
C) Compile code
D) Store data permanentlyWhich of the following is an advantage of using parallel processing in computing?
A) Reduced hardware cost
B) Faster execution of tasks
C) Simplified software development
D) Reduced power consumption
What is the time complexity of a binary search algorithm?
A) O(n)
B) O(log n)
C) O(n log n)
D) O(1)
In digital logic, what is a flip-flop used for?
A) Perform arithmetic operations
B) Store a single bit
Requirements:

Leave a Reply
You must be logged in to post a comment.