21 solutions available
Question 7If my_dict is a dictionary as defined below, then which of the following statements will raise an exception ?my_dict = {'apple' : 10,...
Question 8What does the list.remove(x) method do in Python ?Removes the element at index x from the listRemoves the first occurrence of value x from...
Question 9If a table which has one Primary key and two alternate keys. How many Candidate keys will this table have ?1234
Question 10Write the missing statement to complete the following code:file = open("example.txt", "r") data = file.read(100) ............... #Move the...
Question 11State whether the following statement is True or False:The finally block in Python is executed only if no exception occurs in the try...
Question 12What will be the output of the following code ?c = 10 def add(): global c c = c + 2 print(c, end = '#') add() c = 15 print(c,...
Question 13Which SQL command can change the degree of an existing relation ?
Question 14What will be the output of the query ?SELECT * FROM products WHERE product_name LIKE 'App%';Details of all products whose names start with...
Question 15In which datatype the value stored is padded with spaces to fit the specified length.DATEVARCHARFLOATCHAR
Question 16Which aggregate function can be used to find the cardinality of a table ?sum()count()avg()max()
Question 17Which protocol is used to transfer files over the Internet ?HTTPFTPPPPHTTPS
Question 18Which network device is used to connect two networks that use different protocols ?ModemGatewaySwitchRepeater
Question 19Which switching technique breaks data into smaller packets for transmission, allowing multiple packets to share the same network resources.
Question 20Assertion (A): Positional arguments in Python functions must be passed in the exact order in which they are defined in the function...
Question 21Assertion (A): A SELECT command in SQL can have both WHERE and HAVING clauses.Reasoning (R): WHERE and HAVING clauses are used to check...
Question 26The code provided below is intended to swap the first and last elements of a given tuple. However, there are syntax and logical errors in...
Question 31(b)Predict the output of the following code:line = [4, 9, 12, 6, 20] for I in line: for j in range(1, I%5): print(j, '#',...
Question 33A csv file "Happiness.csv" contains the data of a survey. Each record of the file contains the following data:Name of a countryPopulation...
Question 34Saman has been entrusted with the management of Law University Database. He needs to access some information from FACULTY and COURSES...
Question 35A table, named STATIONERY, in ITEMDB database, has the following...
Question 36Surya is a manager working in a recruitment agency. He needs to manage the records of various candidates. For this, he wants the following...