- Home
- MCQs by exam
- NTS
- Computer Science MCQs
NTS MCQs – Computer Science MCQs · Page 16
455 multiple choice questions typical of the NTS exam, with answers and explanations. Switch on practice mode to test yourself first.
-
A
md5()
-
B
base64_encode()
-
C
password_hash()
Correct answer
-
D
sha1()
-
A
PDO prepared statements
Correct answer
-
B
Escaping quotes with addslashes()
-
C
Hiding error messages from users
-
D
Converting all input to uppercase
-
A
An array of three strings
Correct answer
-
B
A boolean true value
-
C
A single joined string
-
D
The number 3
-
A
$_SERVER
-
B
$_FILES
-
C
$_POST
Correct answer
-
D
$_GET
-
A
null
-
B
5
-
C
true
-
D
false
Correct answer
-
A
sizeof()
-
B
length()
-
C
count()
-
D
strlen()
Correct answer
-
A
Translates the query into English
-
B
Runs the query twice for accuracy
-
C
Adds comments to the result set
-
D
Shows the query execution plan
Correct answer
-
A
CHAR allows NULL; VARCHAR does not allow NULL
-
B
CHAR is for Unicode; VARCHAR is ASCII only
-
C
CHAR stores numbers; VARCHAR stores text
-
D
CHAR is fixed-length; VARCHAR is variable-length
Correct answer
-
A
CONCAT_WS()
-
B
STRING_AGG()
-
C
GROUP_CONCAT()
Correct answer
-
D
JOIN_ROWS()
-
A
Rows 11 to 15
Correct answer
-
B
Rows 5 to 10
-
C
Rows 1 to 5
-
D
Rows 10 to 15
-
A
3306
Correct answer
-
B
5432
-
C
1433
-
D
8080
-
A
Deployment diagram
-
B
Component diagram
-
C
Class diagram
-
D
Use case diagram
Correct answer
-
A
Both only stage files without saving them
-
B
Commit uploads to a remote; push saves locally
-
C
Both send changes straight to the remote
-
D
Commit saves locally; push uploads to a remote
Correct answer
-
A
Unpaid licence fees for third-party tools
-
B
Future rework caused by shortcuts now
Correct answer
-
C
Money borrowed to buy development hardware
-
D
Salaries owed to the development team
-
A
Working software
-
B
Processes and tools
Correct answer
-
C
Responding to change
-
D
Customer collaboration
-
A
2
-
B
16
-
C
3
-
D
4
Correct answer
-
A
Check that the user interface looks attractive
-
B
Test the system's speed under very heavy load
-
C
Confirm changes have not broken old features
Correct answer
-
D
Estimate the cost of developing new software
-
A
The median element
-
B
The most recent element
-
C
The smallest element
Correct answer
-
D
The largest element
-
A
O(n log n)
-
B
O(n²)
Correct answer
-
C
O(log n)
-
D
O(n)
-
A
2n
-
B
n + 1
-
C
n − 1
Correct answer
-
D
n
-
A
Selection sort
-
B
Heap sort
-
C
Merge sort
Correct answer
-
D
Quick sort
-
A
Hash set
-
B
Heap
-
C
Stack
-
D
Queue
Correct answer
-
A
192.169.0.0/16
-
B
192.168.0.0/16
Correct answer
-
C
172.32.0.0/16
-
D
11.0.0.0/8
-
A
With a three-way handshake: SYN, SYN-ACK, ACK
Correct answer
-
B
With a four-way FIN and ACK exchange
-
C
With a single SYN packet sent by the client
-
D
With a two-way exchange: SYN and then ACK
-
A
110
-
B
53
Correct answer
-
C
25
-
D
80