Home > Python > Quizzes > Advanced Python Practice Test
Advanced Python Practice Test
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 0% Most missed: “Student(ID, name, dept name, tot_cred) In this query which attribute form the pr…”
Advanced Python Practice Test
Time left 00:00
25 Questions

1. What is the output of the following? x = abcd print(list(map(list, x)))
2. What is the output of the code shown below? def f(x): yield x+1 print(test") yield x+2 g=f(9)"
3. What is the output of the following piece of code? class A():def disp(self): print(A disp()") class B(A): pass obj = B() obj.disp()"
4. For using a specific database …………… command is used.
5. ………………. Allows definitions and query language statements to be entered query results are formatted and displayed.
6. The …………….. is related to the concept of multi-valued dependency.
7. Which of the following functions does not accept any arguments?
8. What is returned by math.isfinite(float(‘nan’))?
9. The normal form that is not necessarily dependency preserving is
10. The fifth Normal form is concerned with
11. Dependency preservation is not guaranteed in
12. What are the methods which begin and end with two underscore characters called?
13. What does os.getlogin() return?
14. What is the output of the following? def to_upper(k): k.upper() x = ['ab', 'cd'] print(list(map(to_upper, x)))
15. Reflexivity property says that X – Y is true if Y is ………………….
16. The term attribute refers to a ___________ of a table.
17. How many join types in join condition:
18. Which of these is a private data field? def Demo: def __init__(self): __a = 1 self.__b = 1 self.__c__ = 1 __d__= 1
19. A domain is atomic if elements of the domain are considered to be ____________ units.
20. ………………… is a special type of integrity constraint that relates two relations & maintains consistency across the relations.
21. A relational database consists of a collection of
22. A ………………… specifies the actions needed to remove the drawbacks in the current design of a database.
23. Which of the syntax is correct for insert statement? i. insert into values ii. insert into (column list) values
24. The output of the code shown below is: int('65.43')
25. For each attribute of a relation, there is a set of permitted values, called the ________ of that attribute.