The Programming language Python is named after:
Identify primary key in the given table student:
Find the output:
s = "CuEt #2022"
f = open("new.Txt", "w+")
f.write(s)
f.seek(0)
c = f.read(9)
for i in c:
if i.isupper():
print(i.lower(), end="#")
elif i.islower():
print(i.upper(), end="#")
elif int(i).isdigit():
print(int(i)+1, end="#")
else:
print("$", end="#")
f.close()
Consider the table given below.
Identify the operation applied to the given tables to get the given output
Consider the given text file 'pledge.txt'
f=open('pledge.txt', 'r') #Statement 1
ine = f.readlines() #Statement 2
print(len(line)) #Statement 3
f.close() #Statement 4
Identify the correct output, will be given by statement 3.
Consider the following statements related to stacks and queues and choose the option that correctly identifies their validity.
What is the output produced by following output code
def test():
try:
return 0
except:
print('error')
finally:
return 2
obj=test()
print(obj)
A relational database, which is in 3NF, may have undesirable data redundancy because there may exist
____ constraints apply only to individual column.
We know that RJ-45 is an eight-wire connector that connects a computer to LAN, especially Ethernets. Here, what is the expansion of RJ?
Which of the following options is not correct?
Study the following program:
x = 1
while true:
if x % 5 = = 0:
break print(x) x + = 1
What will be the output of this code?
Which of the following statements is incorrect in the context of binary files?
A perfect hash function maps every input key to a unique index in the hash table. If the hash function is perfect, collisions will______.
For which constraints are indexes created when the constraint is added?
Where would you look for errors from the database engine?
Which protocol is the foundation of data communication for the World Wide Web?
What will be the output of the following Python code?
def f1(a,b=[]):
b.append(a)
return b
print (f1(2,[3,4]))
Syntax of seek function in Python is myfile.seek(offset, reference_point) where myfile is the file object. What is the default value of reference_point?
A company ABC Enterprises has four blocks of buildings as shown in the figure:
Center to center distance between various blocks:
Number of computers in each block:
Computers in each block are networked but blocks are not networked. The company has now decided to connect the blocks also.
Q. Suggest the most appropriate topology for the connections between the blocks.
A company ABC Enterprises has four blocks of buildings as shown in the figure:
Center to center distance between various blocks:
Number of computers in each block:
Computers in each block are networked but blocks are not networked. The company has now decided to connect the blocks also.
Q. Which one of the following devices will you suggest for connecting all the computers with in each of their blocks?
8 docs|148 tests
|