18 solutions available
Question 8Consider the statements given below and then choose the correct output from the given options:pride = "#G20 Presidency"...
Question 10What possible outputs(s) will be obtained when the following code is executed?import random myNumber = random.randint(0, 3) COLOR =...
Question 12Consider the code given below:b = 100 def test(a): ............... #missing statement b = b + a print(a, b) test(10) print(b)Which...
Question 13State whether the following statement is True or False:An exception may be raised even if the program is syntactically correct.
Question 14Which of the following statements is FALSE about keys in a relational database?Any candidate key is eligible to become a primary key.A...
Question 15Fill in the blank:In case of ............... switching, before a communication starts, a dedicated path is identified between the sender...
Question 16Which of the following functions changes the position of file pointer and returns its new position?flush()tell()seek()offset()
Question 17Assertion(A): List is an immutable data type.Reasoning(R): When an attempt is made to update the value of an immutable variable, the old...
Question 18Assertion(A): Python Standard Library consists of various modules.Reasoning(R): A function in a module is used to simplify the code and...
Question 20The code given below accepts a number as an argument and returns the reverse number. Observe the following code carefully and rewrite it...
Question 23(a)Write the Python statement for each of the following tasks using BUILT-IN functions/methods only:(i) To insert an element 200 at the...
Question 24(a)Ms. Shalini has just created a table named “Employee” containing columns Ename, Department and Salary. After creating the table, she...
Question 25Predict the output of the following code:def Changer(P, Q = 10): P = P / Q Q = P % Q return P A = 200 B = 20 A = Changer(A,...
Question 30A list, NList contains following record as list elements:[City, Country, distance from Delhi]Each of these records are nested together to...
Question 31Consider the tables PRODUCT and BRAND given below:Table:...
Question 32Vedansh is a Python programmer working in a school. For the Annual Sports Event, he has created a csv file named Result.csv, to store the...
Question 35(a)(i) Define the term Domain with respect to RDBMS. Give one example to support your answer.(ii) Kabir wants to write a program in Python...
Question 35(b)(i) Give one difference between alternate key and candidate key.(ii) Sartaj has created a table named Student in MYSQL database,...