Unlock hundreds more features
Save your Quiz to the Dashboard
View and Export Results
Use AI to Create Quizzes and Analyse Results

Sign inSign in with Facebook
Sign inSign in with Google

Computer Science Quiz: Basic Concepts

Quick, free computer science test-check your basics and get instant results.

Editorial: Review CompletedCreated By: Effata DeafUpdated Aug 25, 2025
Difficulty: Moderate
2-5mins
Learning OutcomesCheat Sheet
Paper art illustration for a computer science quiz on a golden yellow background

This computer science quiz helps you check your grasp of basics like data types, logic, and simple algorithms, with clear questions and instant feedback. Need a warm-up? Start with a computer basics quiz, then build coding fluency with a quick programming quiz, or round out your understanding with a basic computer knowledge quiz.

What does CPU stand for?
Central Program Unit
Control Processing Utility
Computer Process Utility
Central Processing Unit
undefined
Which data structure operates on a Last-In, First-Out principle?
Queue
Hash table
Binary tree
Stack
undefined
What is the binary representation of the decimal number 5?
100
110
101
111
undefined
An operating system primarily manages which of the following?
Only the user interface
Only application installation
Hardware and software resources
Only network connections
undefined
Which of the following is a high-level programming language?
Python
Machine code
Microcode
Assembly is the only correct answer
undefined
Big-O notation describes which aspect of an algorithm?
Lower bound on accuracy
Asymptotic upper bound of resource usage
Exact number of operations executed
Average memory used in bytes
undefined
A recursive function must include what to avoid infinite recursion?
A global variable
A base case
A try-catch block
A loop counter
undefined
Which method is commonly used to handle hash table collisions?
Separate chaining
Quenching
Priming
Gradient descent
undefined
An INNER JOIN in SQL returns which rows?
Rows with matching keys in both tables
All rows from the left table only
All rows from both tables regardless of match
Only unmatched rows from both tables
undefined
TCP is connectionless and does not guarantee delivery.
True
False
undefined
Which statement best describes NP-complete problems?
Problems not verifiable in polynomial time
Problems solvable in constant time
Problems that require exponential space only
Problems in NP to which every NP problem reduces in polynomial time
undefined
Which condition is NOT one of the necessary conditions for deadlock?
No preemption
Mutual exclusion
Preemption
Hold and wait
undefined
In ACID properties of transactions, the letter I stands for what?
Immutability
Indexing
Isolation
Integrity
undefined
CAP theorem states that in the presence of a network partition, a distributed system must choose between which two properties?
Durability and atomicity
Integrity and isolation
Consistency and availability
Scalability and latency
undefined
AES is an example of symmetric-key encryption.
True
False
undefined
Turing completeness informally means a system can compute any computation that a Turing machine can, given enough resources.
True
False
undefined
Deterministic finite automata (DFA) and nondeterministic finite automata (NFA) have which relationship in terms of recognized languages?
They recognize disjoint language classes
NFA recognize more languages than DFA
DFA recognize more languages than NFA
They recognize the same class of regular languages
undefined
Amdahl's Law implies that speedup is limited by the serial fraction of a program.
False
True
undefined
Lamport logical clocks are sufficient to totally order all events across distributed processes without additional mechanisms.
True
False
undefined
Consistent hashing is primarily used to do what in distributed systems?
Encrypt data at rest
Minimize data movement when nodes join or leave
Guarantee strong consistency
Reduce network latency
undefined
0

Study Outcomes

  1. Understand Algorithm Basics -

    Gain clarity on fundamental algorithm types such as sorting and searching to build a solid foundation in problem-solving techniques.

  2. Identify Common Data Structures -

    Recognize and differentiate between arrays, linked lists, stacks, and queues to support efficient data organization and retrieval.

  3. Recall Hardware Components -

    Explain the roles of CPUs, memory, storage devices, and input/output units to grasp essential computer architecture concepts.

  4. Apply Coding Logic -

    Solve straightforward programming scenarios by applying control structures and logical operators with confidence.

  5. Analyze Problem-Solving Strategies -

    Evaluate simple computational problems and choose appropriate algorithmic approaches to optimize performance.

  6. Assess CS Fundamentals Proficiency -

    Use instant feedback from this basic computer science quiz to pinpoint strengths and areas for improvement in your CS fundamentals.

Cheat Sheet

  1. Understanding Big O Notation -

    Big O notation measures how an algorithm's runtime or memory grows with input size. Use the mnemonic "1-Log-N-NLogN-N²" to recall O(1), O(log n), O(n), O(n log n), and O(n²) (Cormen et al., Introduction to Algorithms). Practice ranking algorithms on MIT OpenCourseWare to solidify your grasp of efficiency.

  2. Key Data Structures: Arrays vs. Linked Lists -

    Arrays offer constant-time indexing (O(1)), while linked lists excel at dynamic insertion and deletion with O(1) pointer updates but O(n) access (Sedgewick & Wayne, Algorithms). Remember "A-C^2": Arrays for fast access, Chains (linked lists) for flexible growth. Compare implementations on Stanford CS to see real-world trade-offs.

  3. CPU and Memory Fundamentals -

    The CPU's fetch-decode-execute cycle processes instructions, while RAM stores data for quick access and cache boosts speed (Stallings, Computer Organization and Architecture). Picture data flowing from memory to CPU registers - this pipeline analogy helps recall how hardware works together. Explore Carnegie Mellon's architecture lectures for in-depth diagrams.

  4. Mastering Control Flow: Conditionals & Loops -

    Conditionals (if-else) branch code based on Boolean tests, and loops (for, while) repeat actions until conditions change, forming the backbone of coding logic. Use flowcharts or truth tables to visualize these paths (Oracle Java Tutorials). A simple phrase - "Test, then go" for loops - can cement the loop-evaluation-execute cycle.

  5. Binary & Number System Conversions -

    Computers use base-2 arithmetic; convert decimal to binary by dividing by 2 and tracking remainders, then read remainders in reverse (Khan Academy). For hexadecimal, group binary bits in sets of four (e.g., 1010 = A). Practice with "Divide, Remainder, Reverse" to ace basic computing trivia on your introductory CS quiz.

Powered by: Quiz Maker