Which of the following precedence orders is correct in Python?
Which of the following is not an SQL commands category?
1 Crore+ students have signed up on EduRev. Have you? Download the App |
What will be the output of the following python code?
x=['ab', 'cd']
for i in x:
x.append(i.upper())
print(x)
Two statements are given below, one is Assertion (A) and the other is Reason (R). Read the statements carefully and choose the correct answer.
Assertion (A): Queue is a data structure that follows the First-In-First-Out (FIFO) principle.
Reason (R): The last item added to the queue is the first item to be removed from the queue.
Which set of functions can be used to read or write a file randomly?
Ram opened a file in a certain mode. After opening the file, he forgot the mode. The interesting facts about that mode are " If the file doesn't exist, then a new file will be created" and "After opening file in that mode, the file handle will be at the end of the file". Help him identify the correct mode.
When we open an internet site, we see 'www'. What does 'www' stand for?
Secure transfer of data over an unsecured network such as internet can be done using
Consider the usual algorithm for determining whether a sequence of parentheses is balanced. The maximum number of parentheses that appear on the stack AT ANY ONE TIME when the algorithm analyzes: (()(())(()))is:
Two statements are given below:
Statement I: strings = ['apple', 'banana', 'cherry', 'date']lengths = list(map(lambda s: len(s), strings))print(lengths)# Output: [5, 6, 6, 4]
Statement II: strings = [ 'cherry', 'date', 'apple', 'banana',]lengths = list(map(lambda s: len(s), strings))print(lengths)# Output: [6, 4, 5, 6]
____ are instructions given by the user to the database also known as statements.
Which commands provide definitions for creating table structure, deleting relations and modifying relation schemas?
A text file student.txt is stored in the storage device. Identify the correct option out of the following to open the file in read mode.
i. myfile = open('student.txt','rb')
ii. myfile = open('student.txt','w')
iii. myfile = open('student.txt','r')
iv. myfile = open('student.txt')
Which of the following components is/are part(s) of a function header in Python?
Which of the following communication channels is established during telephone conversation?
Two statements are given below:
Statement I: Purpose of the hue parameter in the seaborn library is to specify the color of the plot.
Statement II: Purpose of the hue parameter in the seaborn library to specify the variable to use for color encoding.
Directions: Match the contents under List I with those under List II.
Which of the following is not a type of computer network?
The writelines() function is used for ___________________.
When a particular section of code can raise more than one errors then to handle this __________ number of except block can be possible for one try block.
Which of the following error will be raised by the given Python code:
randomList = ['a', 2, 3]
for element in randomList:
print("The element is ", element)
x = int(element+1)
print("The incremeant of ", element, "is", x)
Which exception is raised when an interpreter does not find the requested module definition?
Which statement is generally used in the beginning of the function or after a function call to check for valid input?
Which of the following statement can be used to display all built in exceptions?
Which exception is raised when the index or subscript in a sequence is out of range?
When the processing of file gets over, which statement will automatically close that file?
Which type of error will be raised by the following Python code:
x = 10
y = 20
if (y > x)
print("y is greater than x")
The else clause is raised in try-except-else block execution, when _______________________.