Industry-relevant training in Business, Technology, and Design
Fun games to boost memory, math, typing, and English skills
Duration
15 min
Questions
35
Marking
Negative
Test Currently Unavailable
This mock test may have expired, be pending approval, or still be processing. Please check back later or contact support.
Which of the following is an invalid identifier to be used in Python?
What is the correct way to add an element to the end of a list in Python?
What will be the output of print("Welcome To My Blog"[2:6] + "Welcome To My Blog"[5:9])?
Which of the following statements is false?
Which of the following statement(s) would give an error during the execution of the code with dictionary R = {'pno':52,'pname':'Virat', 'expert':['Badminton','Tennis'] ,'score':(77,44)}?
Which pickle module method is used to write a Python object to a binary file?
Given dictionaries dict_student = {"rno" : "53", "name" : 'Rajveer Singh'} and dict_marks = {"Accts" : 87, "English" : 65}, which statement will append the contents of dict_marks in dict_student?
Which of the following is not a component of the math module in Python?
What will be the output of the following code? L=["One , Two", "Three", "Four"]; print(len(L)/2*len(L[0]))
What does PPP stand for in networking?
Which SQL operator performs pattern matching?
Which Python function is used for displaying only one result set from SQL table in a database?
Which of the following file opening mode in Python, generates an error if the file does not exist?
The correct syntax of seek() is:
Which of the following statements is false?
_ protocol provides access to services hosted on a remote computer.
Assertion (A): For changes made to a variable defined within a function to be visible outside the function, it should be declared as global. Reasoning (R): Variables defined within a function are local to that function by default, unless explicitly specified with the global keyword.
Assertion (A): A binary file in python is used to store collection objects like lists and dictionaries that can be later retrieved in their original form using pickle module. Reasoning (R): Binary files are just like normal text files and can be read using a text editor like Notepad.
Which of the following is an advantage of circuit switching?
Identify the syntax error in the following code: num1, num2 = 10, 45; While num1 % num2 == 0; num1+= 20; num2+= 30; Else: print('hello')
What will be the output when a function dispBook(BOOKS) displays names in uppercase of books whose name starts with a consonant, given BOOKS = {1:"Python", 2:"Internet Fundamentals", 3:"Networking", 4:"Oracle sets", 5:"Understanding HTML"}?
What will be the output of the following code? L = [5,10,15,1]; G = 4; def Change(X): global G; N=len(X); for i in range(N): X[i] += G; Change(L); for i in L: print(i,end='$')
Which Python statement is used to delete an element 'Mumbai':50 from Dictionary D?
What is the difference between % (percentage) and _ (underscore) characters used with the LIKE operator in SQL?
If SELECT count(Department) and SELECT count(*) from Employee table are producing different results, what may be the possible reason?
What will be the output of SELECT * FROM BOOK NATURAL JOIN MEMBER; when tables BOOK and MEMBER share a common column CODE?
What will be the output of SELECT FID, MIN(FEES), MAX(FEES) FROM COURSES GROUP BY FID; from the COURSES table?
A function COUNT() reads from 'Gratitude.txt' and displays count of letter 'e' in each line. If line 1 contains 'Gratitude is a humble heart's radiant glow,', what should be the count?
In the RESULT table with columns ADNO, ROLLNO, SNAME, SEM1, SEM2, DIVISION, which columns can be considered as candidate keys?
Given a Stack implementation for student IDs who scored ≥80 in TS3, if Stu_dict ={5:(87,68,89), 10:(57,54,61), 12:(71,67,90), 14:(66,81,80), 18:(80,48,91)}, which IDs will be pushed to the stack?
A function maxsalary() reads from 'record.csv' containing employee data (E_code, E_name, Scale, Salary) and should display the row with maximum salary. What approach should be used?
A function expensiveProducts() reads from binary file 'INVENTORY.DAT' with structure (ProductID, ProductName, Quantity, Price) and displays products with price > Rs. 1000. What module is required?
For Fun Media Services Ltd network in Mumbai with buildings ADMIN(110 computers), DECORATORS(75), MEDIA(12), FOOD(20), which building should host the server?
What is the difference between seek() and tell() functions in Python file handling?
In MySQL-Python connectivity, to establish connection with database 'STORE', which parameter is missing in mysql.connect(host='localhost', user='root', password='____', database='STORE')?