Which of the following is an immutable data type in Python?
Correct!
The answer is C, Tuple.
Lakshyank has 50 Computer Science questions for CBSE XII. Try a few below, then practise the rest free.
Which of the following is an immutable data type in Python?
Correct!
The answer is C, Tuple.
Which string method returns True if all characters in the string are alphanumeric (letters or numbers) and there is at least one character?
Correct!
The answer is C, isalnum().
In Python file handling, what does the statement f.seek(-10, 2) do in a binary file?
Correct!
The answer is B, Moves pointer 10 bytes backward from the end of the file.
Which Python list method is most efficient (O(1) time complexity) to simulate the PUSH operation at the top of a Stack?
Correct!
The answer is B, append(item).
Candidate keys which are NOT selected as the Primary Key of a relation are known as:
Correct!
The answer is B, Alternate Keys.
Which SQL keyword is used with SELECT to eliminate duplicate rows from the query result set?
Correct!
The answer is B, DISTINCT.
In mysql.connector, which cursor method retrieves at most 'n' rows from the result set of an executed SELECT query?
Correct!
The answer is C, fetchmany(n).
Which guided transmission medium transmits data as pulses of light through glass or plastic cores and is completely immune to electromagnetic interference (EMI)?
Correct!
The answer is C, Optical Fiber Cable.
Practise all 50 Computer Science questions
Sign up free to practise