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
- 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
- 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
- Which architecture uses a relatively small set of simple instructions?
- CISC
- RISC
- SIMD
- MIMD
- Which error-detection method uses polynomial division?
- Parity checking
- Cyclic Redundancy Check
- Checksum only
- Hamming distance
- What is the primary purpose of RAID 1?
- Data striping without redundancy
- Data mirroring
- Data compression
- Network load balancing
- Which operating system component manages file metadata and file-system structures in Unix-like systems?
- Inode
- Shell
- Compiler
- Bootloader
- Which memory-management technique divides physical memory into fixed-size blocks called frames?
- Segmentation
- Paging
- Compaction
- Swapping
- 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
- Which file allocation method stores files in a linked sequence of disk blocks?
- Contiguous allocation
- Linked allocation
- Indexed allocation
- Hashed allocation
- 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
- Which relational algebra operation selects specific columns from a relation?
- Selection
- Projection
- Union
- Difference
- 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
- Which database object presents data from one or more tables without necessarily storing the result as a separate physical table?
- Trigger
- View
- Index
- Sequence
- Which SQL mechanism automatically executes an action when a specified database event occurs?
- Trigger
- Cursor
- Alias
- Constraint name
- Which database isolation level prevents dirty reads but may still allow non-repeatable reads?
- Read Uncommitted
- Read Committed
- Repeatable Read
- Serializable
- Which networking device forwards packets between different IP networks?
- Hub
- Repeater
- Router
- Bridge
- 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
- Which protocol is primarily used to report network errors and diagnostic information?
- ICMP
- FTP
- SMTP
- POP3
- Which networking technology divides a physical LAN into multiple logically separate broadcast domains?
- VLAN
- NAT
- FTP
- HTTP
- Which transport-layer mechanism provides reliable, ordered delivery of data?
- UDP datagrams
- TCP acknowledgements and retransmissions
- IP fragmentation alone
- Ethernet broadcasting
- 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
- 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
- Which programming language feature automatically reclaims memory occupied by objects that are no longer reachable?
- Manual allocation
- Garbage collection
- Static linking
- Preprocessing
- 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
- Which software development model emphasizes short development cycles, frequent feedback and iterative delivery?
- Waterfall Model
- Agile Model
- Big Bang Model
- V-Model
MM Academy