Docsity

Unit 1 Introduction to Computer Science., Exams of Nursing

Toggle sidebar
bg1
Unit 1 Introduction to Computer Science
- Final Examination
Total Questions: 70 | Time Allowed: 120 Minutes
Multiple Choice Questions
1. What is the fundamental unit of information in computing, representing a binary state
of 0 or 1?
a) Nibble
b) Byte
c) Bit
d) Word
Correct Answer: c) Bit
Explanation/Rationale: A bit (binary digit) is the most basic,
fundamental unit of data in computer science, holding a value of
either 0 or 1.
2. Which component of a computer system is responsible for executing instructions and
performing arithmetic/logical operations?
a) RAM
b) CPU
c) HDD
d) Motherboard
Correct Answer: b) CPU
Explanation/Rationale: The Central Processing Unit (CPU) acts as
the primary brain of the computer, executing program instructions
and performing calculations.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a

Partial preview of the text

Download Unit 1 Introduction to Computer Science. and more Exams Nursing in PDF only on Docsity!

Unit 1 Introduction to Computer Science

- Final Examination

Total Questions: 70 | Time Allowed: 120 Minutes

Multiple Choice Questions

1. What is the fundamental unit of information in computing, representing a binary state of 0 or 1? a) Nibble b) Byte c) Bit d) Word Correct Answer: c) Bit

Explanation/Rationale: A bit (binary digit) is the most basic,

fundamental unit of data in computer science, holding a value of

either 0 or 1.

2. Which component of a computer system is responsible for executing instructions and performing arithmetic/logical operations? a) RAM b) CPU c) HDD d) Motherboard Correct Answer: b) CPU

Explanation/Rationale: The Central Processing Unit (CPU) acts as

the primary brain of the computer, executing program instructions

and performing calculations.

3. How many bits are in a standard byte? a) 4 b) 16 c) 32 d) 8 Correct Answer: d) 8

Explanation/Rationale: By standard definition in modern computing

systems, one byte consists of exactly 8 bits.

4. What type of computer memory is volatile and loses its contents when power is turned off? a) RAM b) ROM c) Flash Memory d) Hard Disk Drive Correct Answer: a) RAM

Explanation/Rationale: Random Access Memory (RAM) is volatile

memory used for temporary data storage while the device is

powered on.

5. What is an algorithm? a) A specific programming language syntax b) A step-by-step procedure or set of rules to solve a problem c) A physical circuit inside the CPU d) A high-speed network protocol Correct Answer: b) A step-by-step procedure or set of rules to solve a problem

Explanation/Rationale: An algorithm is defined as a well-defined,

Correct Answer: c) Operating System

Explanation/Rationale: The Operating System (OS) manages

computer hardware resources and provides a platform for

application software to run.

9. What base numbering system is Hexadecimal based on? a) Base 8 b) Base 10 c) Base 2 d) Base 16 Correct Answer: d) Base 16

Explanation/Rationale: Hexadecimal is a positional numeral system

that uses 16 distinct symbols (0-9 and A-F) to represent values.

10. Which logic gate outputs TRUE (1) only when all of its inputs are TRUE (1)? a) OR gate b) AND gate c) XOR gate d) NOT gate Correct Answer: b) AND gate

Explanation/Rationale: The AND logical operation results in true if

and only if all involved operands are true.

11. What translation tool converts high-level programming source code into machine code all at once before execution? a) Compiler b) Interpreter c) Assembler d) Linker

Correct Answer: a) Compiler

Explanation/Rationale: A compiler translates the entire source

program into executable machine code prior to running, whereas an

interpreter translates line-by-line during runtime.

12. What does the acronym 'URL' stand for in web computing? a) Universal Resource Link b) Uniform Resource Locator c) Unified Routing Language d) User Resource Line Correct Answer: b) Uniform Resource Locator

Explanation/Rationale: URL stands for Uniform Resource Locator,

providing the reference address to a resource on the internet.

13. In computational complexity, what notation is used to describe the upper bound or worst-case performance of an algorithm? a) Big Omega Notation b) Big Theta Notation c) Big O Notation d) Little o Notation Correct Answer: c) Big O Notation

Explanation/Rationale: Big O notation characterizes the asymptotic

upper bound of an algorithm's run time or memory usage as input

size grows.

14. Which data structure operates under the Last-In, First-Out (LIFO) principle? a) Queue b) Stack

a) Control Unit (CU) b) Memory Management Unit (MMU) c) Registers d) Arithmetic Logic Unit (ALU) Correct Answer: d) Arithmetic Logic Unit (ALU)

Explanation/Rationale: The ALU is the specialized component within

the CPU designed explicitly to handle arithmetic (+, -, *) and logical

(AND, OR) operations.

18. What is the primary function of a Domain Name System (DNS) server? a) Encrypting web traffic between clients and servers b) Translating human-readable domain names into IP addresses c) Storing web page files for hosting d) Allocating dynamic MAC addresses Correct Answer: b) Translating human-readable domain names into IP addresses

Explanation/Rationale: DNS works like the phonebook of the

Internet, converting human-friendly domains (e.g., example.com) to

machine-routable IP addresses.

19. Which programming language paradigm focuses on objects containing both data (attributes) and code (methods)? a) Functional Programming b) Procedural Programming c) Object-Oriented Programming (OOP) d) Declarative Programming Correct Answer: c) Object-Oriented Programming (OOP)

Explanation/Rationale: OOP is centered around the concept of

objects, encapsulating state variables and behavior within

structured entities.

20. What is the binary equivalence of the decimal number 8? a) 1000 b) 0100 c) 1010 d) 1100 Correct Answer: a) 1000

Explanation/Rationale: Decimal 8 equals 2³, which corresponds

directly to 1000 in positional binary notation (18 + 04 + 02 + 01).

21. What stage of the CPU instruction cycle retrieves the next program instruction from memory? a) Decode b) Fetch c) Execute d) Store Correct Answer: b) Fetch

Explanation/Rationale: The standard CPU machine cycle consists of

Fetch, Decode, Execute, and Store. Fetch retrieves the instruction

from memory using the Program Counter.

22. What protocol provides secure, encrypted transmission of data over the World Wide Web? a) HTTP b) FTP c) HTTPS d) SMTP Correct Answer: c) HTTPS

Explanation/Rationale: HTTPS (Hypertext Transfer Protocol Secure)

Correct Answer: a) ROM

Explanation/Rationale: Read-Only Memory (ROM) is non-volatile

and permanently or semi-permanently holds critical firmware

required to boot hardware.

26. What boolean operation flips a binary value from 0 to 1, or 1 to 0? a) AND b) NOT c) OR d) XOR Correct Answer: b) NOT

Explanation/Rationale: The NOT gate/operation is a unary logical

operator that produces the inverse boolean bit value.

27. Which layer of the OSI network model is responsible for end-to-end packet routing across intermediate networks? a) Physical Layer b) Data Link Layer c) Network Layer d) Application Layer Correct Answer: c) Network Layer

Explanation/Rationale: Layer 3 (Network Layer) manages logical IP

addresses and determines packet routing paths across distinct

network nodes.

28. What term describes a function that solves a problem by calling itself with smaller input instances? a) Iteration

b) Recursion c) Encapsulation d) Polymorphism Correct Answer: b) Recursion

Explanation/Rationale: Recursion occurs when a subprogram

invokes itself until reaching a base termination condition.

29. What is the value of 5 modulo 2 (5 % 2) in standard computer programming? a) 2 b) 1 c) 0. d) 0 Correct Answer: b) 1

Explanation/Rationale: The modulo operator calculates the

remainder after integer division. 5 divided by 2 leaves a remainder

of 1.

30. What hardware device filters and forwards network communication packets between different computer networks? a) Switch b) Hub c) Router d) Modem Correct Answer: c) Router

Explanation/Rationale: Routers connect multiple networks together

and route traffic based on Network Layer (IP) addresses.

31. What is the name of the high-speed CPU-adjacent memory that stores frequently

standard language for relational database management and

operations.

34. What principle of object-oriented programming hides internal realization details and restricts direct data access? a) Encapsulation b) Inheritance c) Polymorphism d) Abstraction Correct Answer: a) Encapsulation

Explanation/Rationale: Encapsulation bundles attributes and

methods together while enforcing controlled access via

private/public qualifiers.

35. What is the fundamental theoretical model of computation proposed by Alan Turing in 1936? a) Von Neumann Engine b) Turing Machine c) Analytical Engine d) Finite Automaton Correct Answer: b) Turing Machine

Explanation/Rationale: A Turing Machine is a mathematical

abstraction of a computing device that manipulates symbols on a

strip of tape according to a table of rules.

36. What logic operation produces TRUE if and only if its inputs differ from one another? a) NAND b) NOR c) XOR d) XNOR

Correct Answer: c) XOR

Explanation/Rationale: Exclusive OR (XOR) returns true (1) if inputs

are different (e.g., 0 and 1) and false (0) if they are identical.

37. Which memory management mechanism uses hard disk storage space to extend physical RAM capacity? a) Cache Memory b) Read Only Memory c) Virtual Memory d) Flash Storage Correct Answer: c) Virtual Memory

Explanation/Rationale: Virtual memory combines physical RAM with

temporary storage space on a secondary drive to handle oversized

computational workloads.

38. What character encoding standard was created to represent text across nearly all modern world writing systems using up to 32 bits? a) ASCII b) Unicode c) EBCDIC d) ANSI Correct Answer: b) Unicode

Explanation/Rationale: Unicode provides a universal character set

encoding capable of handling diverse written languages, expanding

far beyond 7-bit ASCII.

39. What type of network topology links every client device to a central hub or switch? a) Ring Topology

42. How many distinct values can be expressed using 4 bits (one nibble)? a) 8 b) 32 c) 16 d) 64 Correct Answer: c) 16

Explanation/Rationale: Total unique values for n bits is 2ⁿ. For 4

bits, 2⁴ = 16 distinct unique states (0 through 15).

43. Which layer of the OSI model handles data compression, encryption, and syntax formatting? a) Transport Layer b) Session Layer c) Presentation Layer d) Application Layer Correct Answer: c) Presentation Layer

Explanation/Rationale: Layer 6 (Presentation Layer) formats data

for presentation to the application, managing encryption,

compression, and character sets.

44. What term describes a variable that can only hold TRUE or FALSE values? a) Integer b) String c) Boolean d) Float Correct Answer: c) Boolean

Explanation/Rationale: A Boolean data type holds a logical state

representing one of two values: True or False.

45. What component controls the speed of instruction cycles in a processor, measured in Gigahertz (GHz)? a) System Bus b) System Clock c) Accumulator d) Memory Bus Correct Answer: b) System Clock

Explanation/Rationale: The system clock emits electrical pulses at

precise intervals, synchronizing CPU operation execution timing.

46. In object-oriented design, what allows a child class to inherit properties and behavior from a parent class? a) Inheritance b) Compilation c) Polymorphism d) Overloading Correct Answer: a) Inheritance

Explanation/Rationale: Inheritance enables new classes to receive,

extend, or override attributes and procedures defined in existing

parent classes.

47. What type of malware disguises itself as legitimate or desirable software while carrying out malicious background actions? a) Worm b) Trojan Horse c) Spyware d) Ransomware Correct Answer: b) Trojan Horse

Explanation/Rationale: A Trojan misleads users regarding its true

Correct Answer: c) TCP

Explanation/Rationale: Transmission Control Protocol (TCP)

establishes connection-oriented streams ensuring lost packet

retransmission and sequence ordering.

51. What is the value of 2 to the power of 10 (2¹⁰)? a) 512 b) 1000 c) 2048 d) 1024 Correct Answer: d) 1024

Explanation/Rationale: 2¹⁰ equals 1024, which serves as the

traditional binary prefix multiplier for a Kibibyte (KiB).

52. What hardware component connects the CPU to high-speed graphics and system memory modules? a) Northbridge / System Bus b) Southbridge c) Power Supply Unit d) Hard Disk Controller Correct Answer: a) Northbridge / System Bus

Explanation/Rationale: Traditionally, the Northbridge chipset (or

modern integrated memory controller) handles communications

between the CPU, RAM, and graphics bus.

53. What search technique repeatedly splits a sorted array search interval in half? a) Linear Search b) Binary Search

c) Depth-First Search d) Breadth-First Search Correct Answer: b) Binary Search

Explanation/Rationale: Binary search compares the search target to

the middle element, reducing the search space by half on each

iteration.

54. What is the function of the Program Counter (PC) register in a CPU? a) Store the output of the most recent ALU computation b) Keep track of the total clock cycles elapsed c) Hold the memory address of the next instruction to be fetched d) Store active user variable values Correct Answer: c) Hold the memory address of the next instruction to be fetched

Explanation/Rationale: The Program Counter (PC) stores the

location in memory containing the next sequential instruction ready

for execution.

55. Which of the following is an example of an connectionless, unacknowledged transport protocol? a) TCP b) UDP c) SSH d) SFTP Correct Answer: b) UDP

Explanation/Rationale: User Datagram Protocol (UDP) is

connectionless, prioritizing transmission speed over reliability

without handshaking or packet verification.