Computer Science-Practice-6

Test your Computer Science knowledge with 25 new practice MCQs covering computer architecture, operating systems, DBMS, networking, cybersecurity and software engineering.

Practice questions

  1. Which technique allows a computer to transfer data between an I/O device and main memory without continuous CPU intervention?
    • Polling
    • Direct Memory Access
    • Spooling
    • Buffering
  2. What is the primary purpose of instruction pipelining in a processor?
    • To increase hard disk capacity
    • To execute different stages of multiple instructions concurrently
    • To eliminate the need for registers
    • To reduce the size of machine code
  3. Which architecture uses a relatively small set of simple instructions?
    • CISC
    • RISC
    • SIMD
    • MIMD
  4. Which error-detection method uses polynomial division?
    • Parity checking
    • Cyclic Redundancy Check
    • Checksum only
    • Hamming distance
  5. What is the primary purpose of RAID 1?
    • Data striping without redundancy
    • Data mirroring
    • Data compression
    • Network load balancing
  6. Which operating system component manages file metadata and file-system structures in Unix-like systems?
    • Inode
    • Shell
    • Compiler
    • Bootloader
  7. Which memory-management technique divides physical memory into fixed-size blocks called frames?
    • Segmentation
    • Paging
    • Compaction
    • Swapping
  8. What is the primary function of a semaphore in operating systems?
    • To encrypt files
    • To synchronize access to shared resources
    • To increase processor frequency
    • To manage file extensions
  9. Which file allocation method stores files in a linked sequence of disk blocks?
    • Contiguous allocation
    • Linked allocation
    • Indexed allocation
    • Hashed allocation
  10. What is the main function of a bootloader?
    • To compile application programs
    • To initialize the system and load the operating system kernel
    • To manage database transactions
    • To create user accounts
  11. Which relational algebra operation selects specific columns from a relation?
    • Selection
    • Projection
    • Union
    • Difference
  12. What is referential integrity in a relational database?
    • Ensuring that every table has identical columns
    • Ensuring that foreign-key references correspond to valid referenced records or permitted NULL values
    • Preventing all database updates
    • Ensuring that every column contains unique values
  13. Which database object presents data from one or more tables without necessarily storing the result as a separate physical table?
    • Trigger
    • View
    • Index
    • Sequence
  14. Which SQL mechanism automatically executes an action when a specified database event occurs?
    • Trigger
    • Cursor
    • Alias
    • Constraint name
  15. Which database isolation level prevents dirty reads but may still allow non-repeatable reads?
    • Read Uncommitted
    • Read Committed
    • Repeatable Read
    • Serializable
  16. Which networking device forwards packets between different IP networks?
    • Hub
    • Repeater
    • Router
    • Bridge
  17. What is the primary purpose of Network Address Translation (NAT)?
    • To convert domain names into IP addresses
    • To translate IP addresses between network addressing domains
    • To encrypt all network packets
    • To detect programming errors
  18. Which protocol is primarily used to report network errors and diagnostic information?
    • ICMP
    • FTP
    • SMTP
    • POP3
  19. Which networking technology divides a physical LAN into multiple logically separate broadcast domains?
    • VLAN
    • NAT
    • FTP
    • HTTP
  20. Which transport-layer mechanism provides reliable, ordered delivery of data?
    • UDP datagrams
    • TCP acknowledgements and retransmissions
    • IP fragmentation alone
    • Ethernet broadcasting
  21. What is the main purpose of salting passwords before storing their hashes?
    • To make passwords shorter
    • To ensure identical passwords produce different stored hash values when different salts are used
    • To eliminate the need for password verification
    • To make passwords publicly readable
  22. Which type of cyberattack involves injecting malicious scripts into web pages viewed by other users?
    • Cross-Site Scripting
    • Brute-force attack
    • Denial of Service
    • Packet sniffing
  23. Which programming language feature automatically reclaims memory occupied by objects that are no longer reachable?
    • Manual allocation
    • Garbage collection
    • Static linking
    • Preprocessing
  24. In software engineering, what is the primary purpose of regression testing?
    • To measure employee performance
    • To verify that changes have not adversely affected previously working functionality
    • To design database tables
    • To increase network bandwidth
  25. Which software development model emphasizes short development cycles, frequent feedback and iterative delivery?
    • Waterfall Model
    • Agile Model
    • Big Bang Model
    • V-Model
MM Academy Preparing your learning space…