- Home
- MCQs by exam
- NTS
- Data Science
NTS MCQs – Data Science · Page 11
266 multiple choice questions typical of the NTS exam, with answers and explanations. Switch on practice mode to test yourself first.
-
A
To copy the list faster using less memory
-
B
To remove duplicate items while copying
-
C
To convert the list into an immutable tuple
-
D
To copy the inner lists as well
Correct answer
-
A
[1, 'a', 2, 'b', 3]
-
B
An error because the lengths differ
-
C
[(1, 'a'), (2, 'b')]
Correct answer
-
D
[(1, 'a'), (2, 'b'), (3, None)]
-
A
(0, 'a') and (1, 'b')
-
B
(1, 'a') and (2, 'b')
Correct answer
-
C
(1, 'b') and (2, 'a')
-
D
('a', 1) and ('b', 2)
-
A
['banana', 'kiwi', 'fig']
-
B
['fig', 'kiwi', 'banana']
Correct answer
-
C
['banana', 'fig', 'kiwi']
-
D
['fig', 'banana', 'kiwi']
-
A
'ytho'
-
B
'yth'
Correct answer
-
C
'pyt'
-
D
'pyth'
-
A
Global variables cannot be read by any function
-
B
Each thread receives its own private memory heap
-
C
Only one thread executes Python bytecode at a time
Correct answer
-
D
Python code always runs on all CPU cores at once
-
A
It returns a generator that yields lazily
Correct answer
-
B
It returns all of its values at once in a list
-
C
It can only be called once in the whole program
-
D
It pauses the entire program until input arrives
-
A
A tool that formats code according to PEP 8
-
B
A comment that documents what a function does
-
C
A function that wraps another function
Correct answer
-
D
A special variable that stores class constants
-
A
A tuple and a dictionary
Correct answer
-
B
A dictionary and a tuple
-
C
Two separate lists
-
D
A list and a set
-
A
An error
-
B
[1, 2]
Correct answer
-
C
[2]
-
D
[1]
-
A
[0, 1, 4, 9]
Correct answer
-
B
[0, 2, 4, 6]
-
C
[0, 1, 2, 3]
-
D
[1, 4, 9, 16]
-
A
The speed at which data is generated
-
B
The total amount of data being stored
-
C
The trustworthiness and quality of data
Correct answer
-
D
The range of different data formats
-
A
Schema-on-read
Correct answer
-
B
Schema-free indexing
-
C
Schema-on-write
-
D
Schema-on-delete
-
A
128 MB
Correct answer
-
B
1 GB
-
C
4 KB
-
D
64 MB
-
A
Three or more unordered classes
Correct answer
-
B
Continuous numeric values only
-
C
Exactly two possible categories
-
D
Categories in a fixed rank order
-
A
10
-
B
13
Correct answer
-
C
25
-
D
16