Back to Blog
Subject Guide
2026-10-26
33 min read

100 NTS NAT-ICS Computer Science MCQs with Answers and Explanations

By McqsBase Team · Editorial policy and corrections

NTS NAT-ICS Computer Science Fundamentals MCQs Practice Set for October 26, 2026

This independent NAT-ICS-style practice set focuses on computer science fundamentals: converting between number systems, applying Boolean logic, tracing pseudocode, choosing suitable data structures, interpreting basic SQL, and understanding networking and operating-system concepts. Questions progress from direct recall to short applications, and every answer includes reasoning. This is practice material, not an official syllabus or a reproduction of a past paper; test arrangements and covered topics can vary, so consult the latest official notice for current information.

Why this NTS NAT-ICS Computer Science Fundamentals set is useful

Work through 100 original computer science MCQs for independent NTS NAT-ICS preparation. The set practises binary and Boolean operations, pseudocode, algorithms and data structures, database concepts, networking, and operating systems, with four options and an explanation for every answer. Start with this focused set, then continue with the MCQsBase question bank, online quiz practice, past papers, and the complete MCQsBase blog.

Test focus topics

No.Focus AreaWhat to Practice
1Number systems and digital logicConvert small binary and hexadecimal values, apply Boolean operators, and recognize basic computer hardware and data representation.
2Programming fundamentalsTrace short pseudocode carefully, including conditions, loops, arrays, functions, recursion, and integer division.
3Algorithms and data structuresIdentify suitable structures and search or traversal methods, and interpret common time-complexity descriptions.
4Databases and SQLDistinguish keys, constraints, normalization, transactions, and common query clauses.
5Networking and operating systemsReview network addressing and protocols alongside processes, memory, synchronization, and basic security.

What this set covers

SectionQuestionsFocus
Set 11-20Core NTS NAT-ICS Computer Science Fundamentals fundamentals
Set 221-40Foundational test concepts
Set 341-60Mixed exam-style practice
Set 461-80Fast recall and elimination practice
Set 581-100Final revision and score-building
1-20. NTS NAT-ICS Computer Science Fundamentals MCQs
Choose one option, then check the bold answer.
Q1MCQ Practice
Answer C

What is the decimal value of the binary number 101101?

A.41
B.43
C.45
D.53

Correct Answer

C) 45
Using place values, 101101₂ equals 1×32 + 0×16 + 1×8 + 1×4 + 0×2 + 1×1 = 45.

Q2MCQ Practice
Answer A

What is the sum of the binary numbers 11010 and 01011?

A.100101
B.101001
C.111001
D.100011

Correct Answer

A) 100101
11010₂ is 26 and 01011₂ is 11. Their sum is 37, which is 100101₂.

Q3MCQ Practice
Answer C

In 8-bit two's-complement notation, how is the decimal number −5 represented?

A.00000101
B.11111010
C.11111011
D.10000101

Correct Answer

C) 11111011
Write +5 as 00000101, invert the bits to get 11111010, then add 1. The result is 11111011.

Q4MCQ Practice
Answer C

What is the decimal value of hexadecimal 3A?

A.48
B.56
C.58
D.60

Correct Answer

C) 58
In hexadecimal, A represents 10. Thus 3A₁₆ = 3×16 + 10 = 58.

Q5MCQ Practice
Answer C

Using the binary convention that n bits represent 2ⁿ distinct patterns, how many patterns can 4 bits represent?

A.8
B.12
C.16
D.32

Correct Answer

C) 16
There are 2ⁿ possible patterns for n bits. With 4 bits, 2⁴ = 16.

Q6MCQ Practice
Answer B

For Boolean values A = 1 and B = 0, what is the value of (A AND B) OR NOT B?

A.0
B.1
C.A
D.Undefined

Correct Answer

B) 1
A AND B is 1 AND 0, which is 0. NOT B is NOT 0, which is 1. Therefore 0 OR 1 equals 1.

Q7MCQ Practice
Answer A

What is the output of a NAND gate when both inputs are 1?

A.0
B.1
C.The input is unchanged
D.It depends on the clock

Correct Answer

A) 0
AND of two 1 inputs is 1. NAND negates that result, so its output is 0.

Q8MCQ Practice
Answer A

What is the result of 1 XOR 1?

A.0
B.1
C.2
D.Undefined

Correct Answer

A) 0
XOR is 1 when its inputs differ. Since both inputs are 1, they do not differ and the result is 0.

Q9MCQ Practice
Answer B

Which expression is equivalent to NOT (A OR B) under De Morgan's law?

A.NOT A OR NOT B
B.NOT A AND NOT B
C.A AND B
D.A OR NOT B

Correct Answer

B) NOT A AND NOT B
De Morgan's law states that negating an OR expression changes OR to AND and negates each input: NOT (A OR B) = NOT A AND NOT B.

Q10MCQ Practice
Answer C

How many distinct input combinations are possible for a Boolean function with three binary inputs?

A.3
B.6
C.8
D.9

Correct Answer

C) 8
Each of the three inputs has two possible values, so the total is 2×2×2 = 2³ = 8.

Q11MCQ Practice
Answer B

Under the traditional ASCII character set, how many bits are used to encode a character?

A.6
B.7
C.8
D.16

Correct Answer

B) 7
Traditional ASCII is a 7-bit character encoding and therefore defines 128 possible codes. Extended encodings that use 8 bits are not the original ASCII standard.

Q12MCQ Practice
Answer B

For this question, use the binary convention 1 KiB = 1024 bytes. How many bytes are in 3 KiB?

A.3,000
B.3,072
C.3,120
D.4,096

Correct Answer

B) 3,072
At 1024 bytes per KiB, 3 KiB contains 3×1024 = 3,072 bytes.

Q13MCQ Practice
Answer B

Which CPU component performs arithmetic calculations and logical comparisons?

A.Control unit
B.Arithmetic logic unit
C.Power supply
D.Network interface

Correct Answer

B) Arithmetic logic unit
The arithmetic logic unit, or ALU, performs arithmetic operations and Boolean or comparison operations. The control unit directs instruction execution.

Q14MCQ Practice
Answer A

Which type of memory normally loses its stored contents when power is removed?

A.RAM
B.ROM
C.Flash memory
D.Optical disc

Correct Answer

A) RAM
Main RAM is generally volatile, so its contents are lost when power is removed. ROM, flash memory, and optical discs retain data without continuous power.

Q15MCQ Practice
Answer A

Why is CPU cache generally useful?

A.It stores frequently or recently needed data close to the CPU
B.It replaces every long-term storage device
C.It converts source code into machine code
D.It routes packets between networks

Correct Answer

A) It stores frequently or recently needed data close to the CPU
Cache provides faster access than main memory for data or instructions the CPU is likely to need again. It is small and does not replace long-term storage.

Q16MCQ Practice
Answer C

A processor clock frequency of 2 GHz means approximately how many clock cycles per second?

A.2 million
B.20 million
C.2 billion
D.20 billion

Correct Answer

C) 2 billion
The prefix giga means 10⁹. Therefore, 2 GHz represents 2×10⁹, or 2 billion, cycles per second.

Q17MCQ Practice
Answer B

Which sequence best describes a simplified instruction cycle?

A.Decode, store, print
B.Fetch, decode, execute
C.Compile, link, boot
D.Input, encrypt, transmit

Correct Answer

B) Fetch, decode, execute
In a simplified instruction cycle, the processor fetches an instruction, decodes what it means, and executes it.

Q18MCQ Practice
Answer C

Which kind of memory is designed to retain its contents without power and is commonly used for firmware storage?

A.Cache
B.RAM
C.ROM
D.CPU register

Correct Answer

C) ROM
ROM is non-volatile memory commonly used to store firmware. RAM, cache, and processor registers are generally volatile.

Q19MCQ Practice
Answer B

Which statement about a byte is correct?

A.A byte is always 2 bits
B.A byte is 8 bits
C.A byte is 16 bits
D.A byte is 1024 bits

Correct Answer

B) A byte is 8 bits
A byte consists of 8 bits. Larger storage units are built from bytes; they do not change the size of a byte.

Q20MCQ Practice
Answer A

Which hardware component is primarily responsible for supplying electrical power to a desktop computer's internal components?

A.Power supply unit
B.Graphics processing unit
C.Solid-state drive
D.Heat sink

Correct Answer

A) Power supply unit
The power supply unit converts incoming electrical power into suitable outputs for the computer's components. A heat sink dissipates heat, and a drive stores data.

21-40. NTS NAT-ICS Computer Science Fundamentals MCQs
Choose one option, then check the bold answer.
Q21MCQ Practice
Answer B

Assume pseudocode assignments execute in order. If x starts at 4 and then x is assigned 3 × x + 2, what is x afterward?

A.12
B.14
C.18
D.20

Correct Answer

B) 14
Substitute the starting value: 3×4 + 2 = 12 + 2 = 14.

Q22MCQ Practice
Answer B

In the following pseudocode, what is printed? x = 7; if x < 5 then print 1 else print 2.

A.1
B.2
C.5
D.Nothing

Correct Answer

B) 2
The condition 7 < 5 is false, so execution follows the else branch and prints 2.

Q23MCQ Practice
Answer C

A loop adds each integer from 1 through 4, including both endpoints. What is the final sum?

A.6
B.8
C.10
D.12

Correct Answer

C) 10
The loop adds 1 + 2 + 3 + 4 = 10. Including both endpoints is important here.

Q24MCQ Practice
Answer B

In a zero-indexed array, what is the index of the third element?

A.1
B.2
C.3
D.4

Correct Answer

B) 2
Zero-indexing assigns index 0 to the first element, 1 to the second, and 2 to the third.

Q25MCQ Practice
Answer C

A function returns 2n + 1. What does it return when n = 6?

A.11
B.12
C.13
D.14

Correct Answer

C) 13
Substitute 6 for n: 2×6 + 1 = 13.

Q26MCQ Practice
Answer A

Assume AND is evaluated on Boolean values. When is the expression A AND B true?

A.Only when A is true and B is true
B.When at least one of A or B is true
C.Only when A is false and B is false
D.Whenever A and B have different values

Correct Answer

A) Only when A is true and B is true
Boolean AND requires both inputs to be true. The option describing at least one true input is the rule for OR.

Q27MCQ Practice
Answer B

In this pseudocode, integer division discards the fractional part. Starting with x = 16, the loop repeats while x > 1 and sets x = x / 2 each time. How many times does it repeat?

A.3
B.4
C.5
D.8

Correct Answer

B) 4
The successive values are 16, 8, 4, 2, and 1. The body runs for 16, 8, 4, and 2, so it runs four times.

Q28MCQ Practice
Answer C

Using the recursive definition factorial(1) = 1 and factorial(n) = n × factorial(n − 1), what is factorial(4)?

A.10
B.16
C.24
D.32

Correct Answer

C) 24
factorial(4) = 4×3×2×1 = 24. The base case stops the recursion at 1.

Q29MCQ Practice
Answer A

In a function call, what is a parameter?

A.A value or variable named in the function definition to receive input
B.A hardware register that stores the operating system
C.The output screen used by a program
D.A syntax error raised by the compiler

Correct Answer

A) A value or variable named in the function definition to receive input
A parameter is named in a function definition and receives an argument when the function is called. It is not a hardware component or an error.

Q30MCQ Practice
Answer B

A conditional checks x > 3 AND x < 8. Which value of x makes the condition true?

A.3
B.5
C.8
D.9

Correct Answer

B) 5
The value must be strictly greater than 3 and strictly less than 8. Five meets both tests; the endpoints do not.

Q31MCQ Practice
Answer C

What is the value of total after this pseudocode finishes? total = 0; for i = 1 to 3 inclusive, total = total + 2 × i.

A.6
B.9
C.12
D.18

Correct Answer

C) 12
The loop adds 2×1, 2×2, and 2×3. The total is 2 + 4 + 6 = 12.

Q32MCQ Practice
Answer C

In a language where a function returns immediately when it reaches a return statement, what does this function return for n = 5? function f(n): if n > 0 return n; return 0.

A.0
B.1
C.5
D.6

Correct Answer

C) 5
Since 5 > 0, the first return statement executes and returns 5. The later return 0 is not reached.

Q33MCQ Practice
Answer B

If a loop starts with i = 0 and repeats while i < 3, increasing i by 1 after each iteration, how many iterations occur?

A.2
B.3
C.4
D.0

Correct Answer

B) 3
The loop body runs when i is 0, 1, and 2. At i = 3, the condition is false.

Q34MCQ Practice
Answer C

If the string value is 'COMPUTER', what does a zero-indexed character array return at index 2?

A.C
B.O
C.M
D.P

Correct Answer

C) M
The characters have indices C at 0, O at 1, and M at 2. Therefore, index 2 contains M.

Q35MCQ Practice
Answer B

A function call supplies the argument 9 to a parameter n. If the function returns n − 4, what value is returned?

A.4
B.5
C.9
D.13

Correct Answer

B) 5
The parameter n receives 9. The function computes 9 − 4 = 5.

Q36MCQ Practice
Answer B

Assume integer division discards the fractional part. What is the result of 17 divided by 5 using integer division?

A.2
B.3
C.3.4
D.4

Correct Answer

B) 3
Five fits into 17 three whole times, with a remainder of 2. Integer division returns the quotient 3 and discards the fraction.

Q37MCQ Practice
Answer C

In pseudocode, x begins at 2. The statements are: x = x + 3; x = 2 × x. What is x at the end?

A.7
B.8
C.10
D.12

Correct Answer

C) 10
Assignments happen in order. First x becomes 2 + 3 = 5; then it becomes 2×5 = 10.

Q38MCQ Practice
Answer C

If a function is called with x = 4 and returns x², what value does it return?

A.8
B.12
C.16
D.24

Correct Answer

C) 16
Squaring means multiplying the value by itself: 4² = 4×4 = 16.

Q39MCQ Practice
Answer B

In a Boolean condition, what does NOT false evaluate to?

A.False
B.True
C.0 only
D.Undefined

Correct Answer

B) True
The NOT operator reverses a Boolean value. Negating false gives true.

Q40MCQ Practice
Answer C

What is the worst-case time complexity of linear search through an array of n items?

A.O(1)
B.O(log n)
C.O(n)
D.O(n²)

Correct Answer

C) O(n)
In the worst case, linear search examines every item before finding the target or determining it is absent. The number of checks grows in proportion to n.

41-60. NTS NAT-ICS Computer Science Fundamentals MCQs
Choose one option, then check the bold answer.
Q41MCQ Practice
Answer B

A binary search is performed on the sorted list [2, 5, 8, 12, 16]. Using zero-based indices and the lower middle index for each search range, how many comparisons are needed to find 12?

A.1
B.2
C.3
D.4

Correct Answer

B) 2
The first middle item is 8 at index 2, which is less than 12. The remaining range has 12 as its middle item, so the second comparison finds it.

Q42MCQ Practice
Answer B

Which data structure follows the last-in, first-out rule?

A.Queue
B.Stack
C.Binary tree
D.Hash table

Correct Answer

B) Stack
A stack removes its most recently added item first, which is last-in, first-out. A queue instead follows first-in, first-out.

Q43MCQ Practice
Answer B

Which data structure normally follows the first-in, first-out rule?

A.Stack
B.Queue
C.Heap
D.Call stack

Correct Answer

B) Queue
A standard queue removes items in their arrival order: first in, first out.

Q44MCQ Practice
Answer C

What is the worst-case time complexity of merge sort on n items?

A.O(1)
B.O(log n)
C.O(n log n)
D.O(n²)

Correct Answer

C) O(n log n)
Merge sort divides the input into about log n levels and processes about n items at each level, giving O(n log n) time.

Q45MCQ Practice
Answer A

In a binary search tree with distinct keys, which ordering rule applies at each node?

A.All left-subtree keys are smaller and all right-subtree keys are larger
B.All left-subtree keys are larger and all right-subtree keys are smaller
C.Every node must have exactly two children
D.Keys are stored only at the leaves

Correct Answer

A) All left-subtree keys are smaller and all right-subtree keys are larger
For the standard binary search tree rule with distinct keys, values in the left subtree are smaller than the node, and values in the right subtree are larger.

Q46MCQ Practice
Answer A

A connected, acyclic tree has n vertices. How many edges does it have?

A.n − 1
B.n
C.n + 1
D.2n

Correct Answer

A) n − 1
A basic property of trees is that a connected tree with n vertices has exactly n − 1 edges. An extra edge would create a cycle.

Q47MCQ Practice
Answer A

Which data structure is most directly used to implement breadth-first search?

A.Queue
B.Stack
C.Unsorted array only
D.Binary search tree

Correct Answer

A) Queue
Breadth-first search visits nodes in the order they are discovered, so a FIFO queue holds the next nodes to process.

Q48MCQ Practice
Answer B

Which method is commonly used to implement depth-first search?

A.A queue only
B.A stack or recursion
C.A sorting algorithm
D.A database index

Correct Answer

B) A stack or recursion
Depth-first search follows a path before backtracking. A stack, either explicit or provided by recursive function calls, supports this behavior.

Q49MCQ Practice
Answer A

What does a collision mean in a hash table?

A.Two different keys produce the same hash location
B.A key is stored in alphabetical order
C.The table has no empty cells
D.A search always takes O(n²) time

Correct Answer

A) Two different keys produce the same hash location
A collision occurs when distinct keys map to the same table location. Hash tables use collision-handling methods such as chaining or probing.

Q50MCQ Practice
Answer B

What does it mean for a sorting algorithm to be stable?

A.It never moves an item
B.It preserves the relative order of equal-key items
C.It always runs in O(1) time
D.It sorts only numeric data

Correct Answer

B) It preserves the relative order of equal-key items
A stable sort leaves equal-key items in the same relative order they had in the input. Stability does not specify a fixed running time.

Q51MCQ Practice
Answer A

What is the time complexity of accessing an array element by its index, assuming ordinary random-access memory?

A.O(1)
B.O(log n)
C.O(n)
D.O(n log n)

Correct Answer

A) O(1)
An array's indexed address can be calculated directly from its base address and element size, so access takes constant time under this model.

Q52MCQ Practice
Answer A

What is the main purpose of a base case in a recursive function?

A.To stop recursion when a simple condition is reached
B.To sort the function's parameters
C.To make every recursive call use more memory
D.To convert the function into a loop automatically

Correct Answer

A) To stop recursion when a simple condition is reached
A base case provides a condition that returns without making another recursive call. Without an appropriate stopping case, recursion may continue indefinitely.

Q53MCQ Practice
Answer C

A graph has 6 vertices and 7 edges. What is the sum of the degrees of its vertices, counting an undirected edge at both endpoints?

A.7
B.12
C.14
D.42

Correct Answer

C) 14
In an undirected graph, each edge contributes 1 to the degree of each of its two endpoints. The degree sum is therefore 2×7 = 14.

Q54MCQ Practice
Answer A

Which algorithm finds shortest paths from a source in a graph with non-negative edge weights?

A.Dijkstra's algorithm
B.Binary search
C.Bubble sort
D.Depth-limited sorting

Correct Answer

A) Dijkstra's algorithm
Dijkstra's algorithm finds shortest paths from a source when edge weights are non-negative. It is not generally suitable for graphs containing negative-weight edges.

Q55MCQ Practice
Answer C

What is the time complexity of checking whether an item is present in an unsorted array by examining items one at a time?

A.O(1) in every case
B.O(log n) in the worst case
C.O(n) in the worst case
D.O(n²) in the worst case

Correct Answer

C) O(n) in the worst case
If the item is at the end or absent, all n items may need to be examined. This is linear worst-case time.

Q56MCQ Practice
Answer A

Which structure is a natural choice for representing a collection where each item points to the next item?

A.Linked list
B.Queue only
C.Truth table
D.Hash function

Correct Answer

A) Linked list
In a singly linked list, each node stores data and a link to the next node. A queue describes an access rule, not necessarily this storage representation.

Q57MCQ Practice
Answer C

For a simple adjacency matrix representation of a graph with V vertices, how many matrix entries are used?

A.V
B.V − 1
C.V²
D.2V

Correct Answer

C) V²
An adjacency matrix has one row and one column for each vertex, giving V×V entries.

Q58MCQ Practice
Answer B

Which statement best describes Big O notation?

A.It gives an exact execution time in seconds
B.It describes how resource use grows with input size, up to constant factors
C.It identifies the programming language used
D.It measures only the size of a program file

Correct Answer

B) It describes how resource use grows with input size, up to constant factors
Big O describes an asymptotic growth bound for time or space as input size increases. It does not give an exact time in seconds.

Q59MCQ Practice
Answer A

Which database key is intended to identify each row uniquely and cannot contain a NULL value?

A.Primary key
B.Foreign key
C.Sort key
D.Display label

Correct Answer

A) Primary key
A primary key uniquely identifies each row and must have a value for every row. A foreign key instead refers to a key in another or the same table.

Q60MCQ Practice
Answer A

What is the main role of a foreign key in a relational database?

A.To reference a key in another table and support relationships
B.To encrypt every row in a table
C.To sort query results automatically
D.To guarantee that every column is unique

Correct Answer

A) To reference a key in another table and support relationships
A foreign key links rows by referring to a candidate or primary key. It can help enforce referential integrity.

61-80. NTS NAT-ICS Computer Science Fundamentals MCQs
Choose one option, then check the bold answer.
Q61MCQ Practice
Answer A

Which SQL clause selects rows that meet a condition?

A.WHERE
B.ORDER BY
C.CREATE
D.ALTER

Correct Answer

A) WHERE
WHERE filters rows according to a condition. ORDER BY sorts the result, while CREATE and ALTER define or change database objects.

Q62MCQ Practice
Answer B

Which SQL clause arranges query results by one or more columns?

A.GROUP BY
B.ORDER BY
C.WHERE
D.VALUES

Correct Answer

B) ORDER BY
ORDER BY sorts the rows returned by a query. GROUP BY instead groups rows, commonly for aggregate calculations.

Q63MCQ Practice
Answer A

What does the SQL expression COUNT(*) count in a query result group?

A.The number of rows
B.Only rows with no NULL values in any column
C.The number of columns
D.The sum of numeric values

Correct Answer

A) The number of rows
COUNT(*) counts rows in the result group, regardless of whether particular column values are NULL. COUNT(column) has different NULL-handling behavior.

Q64MCQ Practice
Answer A

Which database design principle is associated with first normal form?

A.Each field holds an atomic value rather than a repeating list of values
B.Every table must contain exactly one row
C.Every column must be a foreign key
D.All tables must have identical columns

Correct Answer

A) Each field holds an atomic value rather than a repeating list of values
First normal form requires values in each field to be atomic in the context of the table and avoids repeating groups. It does not require every table to have one row.

Q65MCQ Practice
Answer A

In the ACID properties of transactions, what does atomicity mean?

A.A transaction is treated as all-or-nothing
B.A transaction always runs in alphabetical order
C.A transaction can read only one table
D.A transaction permanently disables rollback

Correct Answer

A) A transaction is treated as all-or-nothing
Atomicity means the transaction's operations either all take effect or none do. This prevents a partial transaction from being left as the final result.

Q66MCQ Practice
Answer B

Which SQL condition correctly tests whether a column has no value represented by NULL?

A.column = NULL
B.column IS NULL
C.column == NULL
D.column EQUALS EMPTY

Correct Answer

B) column IS NULL
SQL uses IS NULL to test for NULL. Ordinary equality comparisons with NULL do not evaluate as a normal true-or-false equality test.

Q67MCQ Practice
Answer A

What is the purpose of a database index?

A.To help locate rows more efficiently, often at the cost of extra storage and update work
B.To make all data permanently read-only
C.To replace the table's values with passwords
D.To guarantee that every query takes constant time

Correct Answer

A) To help locate rows more efficiently, often at the cost of extra storage and update work
An index can speed up suitable searches, but it uses storage and must be maintained when data changes. It does not guarantee constant time for every query.

Q68MCQ Practice
Answer A

Which SQL command is used to retrieve data from a table?

A.SELECT
B.INSERT
C.DELETE
D.DROP

Correct Answer

A) SELECT
SELECT retrieves data. INSERT adds rows, DELETE removes rows, and DROP removes a database object.

Q69MCQ Practice
Answer A

What is a candidate key?

A.A minimal set of attributes that uniquely identifies a row
B.A column that must contain repeated values
C.A key used only for ordering results
D.A backup copy of the entire database

Correct Answer

A) A minimal set of attributes that uniquely identifies a row
A candidate key uniquely identifies rows, and it is minimal: removing an attribute would make it no longer uniquely identifying.

Q70MCQ Practice
Answer A

Which SQL clause groups rows so that aggregate functions can be applied to each group?

A.GROUP BY
B.ORDER BY
C.WHERE
D.LIMIT

Correct Answer

A) GROUP BY
GROUP BY collects rows sharing selected values into groups, which can then be summarized with aggregate functions such as COUNT or SUM.

Q71MCQ Practice
Answer A

What does an INNER JOIN return when joining two tables on a matching condition?

A.Rows with matching values in both tables
B.Every possible pair of rows regardless of the condition
C.Only rows from the left table with no match
D.Only column names, without any rows

Correct Answer

A) Rows with matching values in both tables
An INNER JOIN returns row combinations for which the join condition matches. An unmatched row from either side is not included.

Q72MCQ Practice
Answer A

Which protocol is primarily used to resolve a domain name such as example.test to an IP address?

A.DNS
B.FTP
C.SMTP
D.ARP

Correct Answer

A) DNS
The Domain Name System resolves domain names to records such as IP addresses. SMTP is used for email transfer, while ARP has a different local-network role.

Q73MCQ Practice
Answer A

Which transport protocol provides reliable, ordered delivery through a connection-oriented service?

A.TCP
B.UDP
C.IP
D.ARP

Correct Answer

A) TCP
TCP establishes a connection and provides mechanisms for reliable, ordered delivery. UDP is connectionless and does not provide the same delivery guarantees.

Q74MCQ Practice
Answer B

Which transport protocol is connectionless and does not itself guarantee delivery or ordering?

A.TCP
B.UDP
C.DNS
D.HTTPS

Correct Answer

B) UDP
UDP sends datagrams without TCP-style connection establishment, retransmission, or ordered delivery guarantees. Applications can add their own reliability mechanisms if needed.

Q75MCQ Practice
Answer A

What is the primary role of a router?

A.To forward packets between networks
B.To store files permanently for all users
C.To convert source code into machine code
D.To assign a unique application password

Correct Answer

A) To forward packets between networks
A router examines network-layer addressing and forwards packets toward other networks. It is not a compiler or general-purpose file-storage device.

Q76MCQ Practice
Answer A

On a typical Ethernet LAN, what does a network switch primarily use to forward frames within the local network?

A.MAC addresses
B.Domain names
C.File extensions
D.CPU clock rates

Correct Answer

A) MAC addresses
A typical Ethernet switch learns MAC addresses and forwards frames within a local network based on those link-layer addresses.

Q77MCQ Practice
Answer A

Network bandwidth is commonly measured in which unit?

A.Bits per second
B.Bytes per square metre
C.Hertz per kilometre
D.Pages per minute

Correct Answer

A) Bits per second
Bandwidth for a data link is commonly expressed in bits per second, such as megabits per second. A data-transfer rate in bytes per second is a related but different unit.

Q78MCQ Practice
Answer B

How many bits are in an IPv4 address?

A.16
B.32
C.64
D.128

Correct Answer

B) 32
An IPv4 address has 32 bits, usually written as four decimal octets. IPv6 addresses have 128 bits.

Q79MCQ Practice
Answer C

Assume a conventional IPv4 /24 subnet with one network address and one broadcast address reserved. How many addresses are available for hosts?

A.252
B.253
C.254
D.256

Correct Answer

C) 254
A /24 leaves 32 − 24 = 8 host bits, giving 2⁸ = 256 total addresses. Under the stated conventional assumption, subtract the network and broadcast addresses: 256 − 2 = 254.

Q80MCQ Practice
Answer A

What does HTTPS provide for web communication that plain HTTP does not provide by itself?

A.Communication protected using TLS
B.A guarantee that the website's information is true
C.An automatic backup of the user's computer
D.A faster processor for the web server

Correct Answer

A) Communication protected using TLS
HTTPS is HTTP carried over TLS, which can protect data in transit and authenticate the server through certificates. It does not guarantee that a site's claims are true.

81-100. NTS NAT-ICS Computer Science Fundamentals MCQs
Choose one option, then check the bold answer.
Q81MCQ Practice
Answer A

Which OSI model layer is most directly associated with logical IP addressing and routing?

A.Network layer
B.Physical layer
C.Presentation layer
D.Application layer

Correct Answer

A) Network layer
The network layer handles logical addressing and routing between networks. The physical layer concerns transmission of raw signals.

Q82MCQ Practice
Answer A

What is a network packet?

A.A formatted unit of data carried across a network
B.A program that can only run in a browser
C.A type of processor cache
D.A physical connector for a keyboard

Correct Answer

A) A formatted unit of data carried across a network
Data is commonly divided and formatted into packets for transmission. A packet is not itself a physical connector or a processor-memory component.

Q83MCQ Practice
Answer A

What is an IP address primarily used for?

A.Logical identification and delivery of data across IP networks
B.Identifying the words in a document
C.Encoding a computer's power level
D.Sorting files by size

Correct Answer

A) Logical identification and delivery of data across IP networks
IP addresses identify network interfaces logically for packet delivery and routing. They do not describe file contents or device power.

Q84MCQ Practice
Answer A

In operating-system terminology, what is a process?

A.A program in execution, along with its execution state and resources
B.A program file that has never been run
C.A single database column
D.A physical network cable

Correct Answer

A) A program in execution, along with its execution state and resources
A process is a running instance of a program, with state and resources managed by the operating system. A program file alone is not yet a running process.

Q85MCQ Practice
Answer A

What is a thread in a process?

A.A unit of execution that can be scheduled within a process
B.A permanent storage device
C.A type of network address
D.A database relationship

Correct Answer

A) A unit of execution that can be scheduled within a process
A thread is an execution path within a process. Threads in one process commonly share process resources, while maintaining their own execution state.

Q86MCQ Practice
Answer A

What is the operating system's scheduler responsible for?

A.Selecting which ready process or thread runs on a processor
B.Converting every image into text
C.Assigning meanings to source-code keywords
D.Creating network cables

Correct Answer

A) Selecting which ready process or thread runs on a processor
The scheduler allocates processor time by choosing among tasks that are ready to run. It does not perform unrelated jobs such as creating hardware.

Q87MCQ Practice
Answer A

What is virtual memory?

A.A memory-management technique that gives processes a virtual address space and can use storage to support it
B.A memory chip that never loses power and needs no hardware
C.A technique for deleting all temporary files
D.A network protocol for transferring web pages

Correct Answer

A) A memory-management technique that gives processes a virtual address space and can use storage to support it
Virtual memory separates a process's address space from physical RAM. Operating systems can use storage as backing for pages that are not currently in RAM, though this is much slower than RAM.

Q88MCQ Practice
Answer A

In a system using virtual memory, what commonly happens when a process accesses a page that is not currently in physical memory?

A.A page fault occurs
B.The CPU turns off permanently
C.The page is automatically a database index
D.The network switches to UDP

Correct Answer

A) A page fault occurs
A reference to a page not currently mapped in physical memory triggers a page fault. The operating system then handles the situation, potentially loading the page from storage.

Q89MCQ Practice
Answer A

Which part of an operating system is its central component for managing core system functions?

A.Kernel
B.Spreadsheet
C.Text editor
D.Web browser

Correct Answer

A) Kernel
The kernel is the core of an operating system and manages functions such as processes, memory, and hardware access. A browser and text editor are application programs.

Q90MCQ Practice
Answer A

What is a mutex commonly used for?

A.Ensuring that only one thread at a time enters a protected critical section
B.Compressing a hard drive
C.Resolving domain names
D.Sorting a database table

Correct Answer

A) Ensuring that only one thread at a time enters a protected critical section
A mutex provides mutual exclusion, allowing one thread at a time to access a protected section or resource. It does not perform network name resolution or data sorting.

Q91MCQ Practice
Answer A

What is a race condition?

A.A result that depends on the timing or ordering of concurrent operations
B.A program that always runs at maximum speed
C.A file that has multiple extensions
D.A guaranteed error in every single-threaded program

Correct Answer

A) A result that depends on the timing or ordering of concurrent operations
A race condition occurs when concurrent operations access or change shared state and the outcome depends on their execution order.

Q92MCQ Practice
Answer A

Which set lists the four classic necessary conditions commonly associated with deadlock?

A.Mutual exclusion, hold and wait, no preemption, circular wait
B.Compilation, execution, storage, deletion
C.Encoding, routing, switching, printing
D.Input, sorting, searching, output

Correct Answer

A) Mutual exclusion, hold and wait, no preemption, circular wait
The classic Coffman conditions are mutual exclusion, hold and wait, no preemption, and circular wait. Breaking at least one condition can prevent deadlock.

Q93MCQ Practice
Answer A

What is the main purpose of a compiler?

A.To translate source code into another form, such as machine code or an intermediate representation
B.To route data packets between networks
C.To manage keyboard hardware only
D.To guarantee that a program has no logic errors

Correct Answer

A) To translate source code into another form, such as machine code or an intermediate representation
A compiler translates source code into a target representation. Compilation can detect some errors, but it cannot guarantee that the program's logic is correct.

Q94MCQ Practice
Answer A

What is the usual role of a linker?

A.To combine object files and resolve references between program components
B.To allocate an IP address to every computer
C.To execute a database query
D.To cool the CPU

Correct Answer

A) To combine object files and resolve references between program components
A linker combines compiled object files and libraries and resolves references needed to form an executable or another linked output.

Q95MCQ Practice
Answer A

Which practice is most useful for finding errors in a small, separately testable function?

A.Unit testing
B.Changing the network router
C.Formatting the hard drive
D.Renaming every variable

Correct Answer

A) Unit testing
A unit test checks a small component, such as a function, in isolation against expected behavior. It is more direct than changing unrelated system settings.

Q96MCQ Practice
Answer A

Which security principle recommends giving a user or program only the permissions necessary for its task?

A.Least privilege
B.Maximum visibility
C.Open access
D.Data duplication

Correct Answer

A) Least privilege
Least privilege limits permissions to what is needed for a role or task. This can reduce the harm caused by mistakes or compromised accounts.

Q97MCQ Practice
Answer A

Which statement best describes encryption?

A.It transforms information using a key so that authorized decryption can recover it
B.It permanently deletes all copies of information
C.It guarantees that information is accurate
D.It sorts information into alphabetical order

Correct Answer

A) It transforms information using a key so that authorized decryption can recover it
Encryption protects confidentiality by transforming readable data into ciphertext using a key. It does not by itself guarantee accuracy or erase all copies.

Q98MCQ Practice
Answer A

In symmetric-key encryption, how are the encryption and decryption keys related?

A.The same shared secret key is used for both operations
B.There is no key for either operation
C.Only a public key can decrypt
D.The key is always a network address

Correct Answer

A) The same shared secret key is used for both operations
Symmetric encryption uses the same secret key, or equivalent shared secret material, to encrypt and decrypt. The key must be protected and shared securely.

Q99MCQ Practice
Answer A

What is phishing?

A.A deceptive attempt to trick people into revealing information or taking an unsafe action
B.A method for increasing RAM speed
C.A way to normalize database tables
D.A technique for cooling a processor

Correct Answer

A) A deceptive attempt to trick people into revealing information or taking an unsafe action
Phishing uses deceptive messages or sites to manipulate people into sharing credentials, financial information, or other sensitive data.

Q100MCQ Practice
Answer A

What is ransomware designed to do?

A.Restrict access to data, often by encrypting it, and demand payment
B.Improve the accuracy of a search algorithm
C.Replace an operating system with a database
D.Prevent every kind of network failure

Correct Answer

A) Restrict access to data, often by encrypting it, and demand payment
Ransomware is malicious software that commonly encrypts or otherwise blocks access to data and demands payment. Paying does not guarantee recovery.

How to revise this NTS NAT-ICS Computer Science Fundamentals set

  1. For binary and hexadecimal questions, write place values before converting; check the result by converting it back to decimal.
  2. Trace pseudocode in a small table with one row per loop iteration. Keep track of the value tested and the value updated separately.
  3. Do not treat Big O as an exact running time. Compare how the number of operations grows as the input size increases.
  4. When revising data structures, connect each structure to its defining rule: a stack is LIFO, a queue is FIFO, and a binary search tree orders values by its branches.
  5. For SQL, identify whether a clause filters rows, groups rows, or sorts results before choosing an answer.
  6. Review the explanations for options you nearly selected; a recurring confusion, such as RAM versus storage or TCP versus UDP, is a useful revision target.

Frequently Asked Questions

Are these official NAT-ICS questions?

No. They are original, independently written practice questions. They should not be treated as official questions or as a confirmed description of the current test syllabus.

How should I use the explanations while practising?

Attempt each question before looking at its answer. For calculation or tracing items, write down intermediate steps, then compare your method with the explanation and note the rule you missed.

Why do some programming questions specify pseudocode rules?

Small details such as whether a loop includes its endpoint or how integer division works can change an answer. The relevant assumptions are stated in those questions to keep the result unambiguous.

What should I do if the actual test format differs from this practice set?

Use this set to review computer science concepts, then follow the latest official notice for the current test format and arrangements. Independent practice cannot establish what will appear on a particular test.

Final Takeaway

Consistent daily MCQ practice is one of the simplest ways to improve recall, speed, and exam confidence. Bookmark this page, complete the 100 NTS NAT-ICS Computer Science Fundamentals MCQs, and continue your preparation on McqsBase.

Ready to Start Practicing?

Put your knowledge into practice with our comprehensive collection of MCQs and past papers.

Related practice articles

Latest articles

All articles