Which character is used in Python to make a single line comment?
Which of the following is the correct extension of the Python file?
1 Crore+ students have signed up on EduRev. Have you? Download the App |
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): Linear search is an efficient searching algorithm for large arrays.
Reason (R): Linear search has a time complexity of O(n).
Which language is used to access and manipulate databases?
Directions: Match the contents under List I with those under List II.
A node that forwards data packets from one network to their destination in another network is called:
Which of the following options can be used to read the first line of a text file Myfile.txt?
If we want to add more contents in an existing file, file must be opened in............mode.
Two statements are given below:
Statement I: ALTER TABLE statement is used to add a new column to an existing table in SQL.
Statement II: INSERT Row statement is used to insert the Row to an existing table in SQL.
It is possible to create a loop using goto statement in python?
What will be the output of following Python code?
str1="Information"
print(str1[2:8])
The process of identifying a slot for the second and further items in the hash table in the event of collision, is called _______.
Which of the following is/are the advantage(s) of a database management system?
Directions: Match the contents under List I with those under List II.
What is the output of the following if statement
a, b = 12, 5
if a + b:
print('True')
else:
print('False')
Your teacher has given you a method/function FilterWords() in python which read lines from a text file NewsLetter.TXT, and display those words, which are lesser than 4 characters. Your teachers intentionally kept few blanks in between the code and asked you to fill the blanks so that the code would run to find desired result. Do the needful with the following python code:
def FilterWords():
c=0
file=open('NewsLetter.TXT', '_____') #Statement-1
line = file._____ #Statement-2
word = _____ #Statement-3
for c in word:
if _____: #Statement-4
print(c)
_________ #Statement-5
FilterWords()
Q. Write the mode of opening the file in Statement-1.
Your teacher has given you a method/function FilterWords() in python which read lines from a text file NewsLetter.TXT, and display those words, which are lesser than 4 characters. Your teachers intentionally kept few blanks in between the code and asked you to fill the blanks so that the code would run to find desired result. Do the needful with the following python code:
def FilterWords():
c=0
file=open('NewsLetter.TXT', '_____') #Statement-1
line = file._____ #Statement-2
word = _____ #Statement-3
for c in word:
if _____: #Statement-4
print(c)
_________ #Statement-5
FilterWords()
Q. Fill in the blank in Statement-3 to read data word by word.
Your teacher has given you a method/function FilterWords() in python which read lines from a text file NewsLetter.TXT, and display those words, which are lesser than 4 characters. Your teachers intentionally kept few blanks in between the code and asked you to fill the blanks so that the code would run to find desired result. Do the needful with the following python code:
def FilterWords():
c=0
file=open('NewsLetter.TXT', '_____') #Statement-1
line = file._____ #Statement-2
word = _____ #Statement-3
for c in word:
if _____: #Statement-4
print(c)
_________ #Statement-5
FilterWords()
Q. Fill in the blank in Statement-5 to close the file.
Your teacher has given you a method/function FilterWords() in python which read lines from a text file NewsLetter.TXT, and display those words, which are lesser than 4 characters. Your teachers intentionally kept few blanks in between the code and asked you to fill the blanks so that the code would run to find desired result. Do the needful with the following python code:
def FilterWords():
c=0
file=open('NewsLetter.TXT', '_____') #Statement-1
line = file._____ #Statement-2
word = _____ #Statement-3
for c in word:
if _____: #Statement-4
print(c)
_________ #Statement-5
FilterWords()
Q. Fill in the blank in Statement-2 to read the data from the file.
Your teacher has given you a method/function FilterWords() in python which read lines from a text file NewsLetter.TXT, and display those words, which are lesser than 4 characters. Your teachers intentionally kept few blanks in between the code and asked you to fill the blanks so that the code would run to find desired result. Do the needful with the following python code:
def FilterWords():
c=0
file=open('NewsLetter.TXT', '_____') #Statement-1
line = file._____ #Statement-2
word = _____ #Statement-3
for c in word:
if _____: #Statement-4
print(c)
_________ #Statement-5
FilterWords()
Q. Fill in the blank in Statement-4, which displays the word having lesser than 4 characters.
Which of the following is not an SQL command?
Which technique is used to restore a database up to the last consistent state after a system failure?
A. Backup
B. Recovery
What will be the output for the following python code statements, respectively?
print("Hello world")
print('Hello world')
print('\"Hello world')
Consider the following python program with the given list a=[5,2,9,8,16,3,1] as input. What does the following program do?
#consider stack is already implemented for you and has predefined pop and push method.
s=stack()
for item in a:
if item%2 != 0:
s.push(item)
max=0
while( len(s)>0 ):
temp=s.pop()
if max<temp:
max=temp
print(max)
Which chart element is utilized to identify data series by its color patterns?
Which of the following is the correct syntax to define Series?
The given array is a = {7,8,9,6,5}. The number of iterations in selection sort and bubble sort respectively are __________.
How many passes are required for sorting 8 elements list using bubble sort?
Which of the following is the correct function to delete a file in python?
8 docs|148 tests
|