Class 12 Computer science
2.06K subscribers
28 photos
2 videos
20 files
73 links
Contact here at @PromoXtalk_bot for any business/ promotion related queries

Contact here @MaterialXrequest_bot for requesting any Study materials
Download Telegram
Q5/10: Which method is used on the cursor object to run a SQL command passed as a string?
Anonymous Quiz
17%
run()
17%
perform()
17%
execute()
33%
query()
Q6/10: Why is the commit() method required after executing an INSERT, UPDATE, or DELETE query in Python?
Anonymous Quiz
0%
To format the result set
50%
To save the data changes permanently in the database
25%
To close the cursor
25%
To fetch the updated rows
Q7/10: Which cursor attribute returns the number of rows affected by the last executed DML statement?
Anonymous Quiz
33%
rowcount
0%
affected_rows
0%
count
33%
modified
Q8/10: Assertion (A): fetchall() returns query results as a list of tuples. Reason (R): Each tuple in the list represents a single row.
Anonymous Quiz
0%
Both A and R are true, and R is correct explanation
50%
Both A and R are true, but R is not correct explanation
25%
A is true, but R is false
0%
A is false, but R is true
Q9/10: Which exception is typically raised when a database connection fails in the mysql.connector module?
Anonymous Quiz
0%
mysql.connector.ConnectionError
25%
mysql.connector.Error
25%
mysql.connector.DatabaseException
50%
mysql.connector.Fail
❤1
Q10/10: What happens if an INSERT query executes successfully via a cursor, but the script terminates without calling commit()?
Anonymous Quiz
0%
The query executes and data is saved.
50%
An error is immediately thrown.
50%
The data is automatically committed.
0%
The changes are discarded and not saved.
🎉 Quiz Finished! 🎉

Thank you for participating.

Keep learning, keep growing, and come back tomorrow for more questions!

Free Premium PDFs: acadpills.com/premium

Next quiz Sunday at 20:00
✨ Quiz Time! ✨

Answer today's quiz questions and test your knowledge.

Every question is a step toward exam success!

FREE Premium PDFs Available Here: acadpills.com/premium

Good luck!
Q1/10: What is the output of the expression 3 * 1 ** 3 in Python?
Anonymous Quiz
57%
3
7%
9
36%
27
0%
1
Q2/10: Which of the following data types is immutable in Python?
Anonymous Quiz
21%
List
21%
Dictionary
0%
Set
57%
Tuple
Q3/10: What will be the output of print(bool('False')) in Python?
Anonymous Quiz
50%
True
29%
False
14%
Error
7%
None
Q4/10: Which function is used to read a line of text from the standard input?
Anonymous Quiz
33%
read()
50%
readline()
17%
input()
0%
get()
Q5/10: Given list L = [10, 20, 30, 40], what does L[-1:-3:-1] return?
Anonymous Quiz
46%
[40, 30]
15%
[30, 20]
31%
[40, 30, 20]
8%
[]
Q6/10: Assertion (A): Lists can be used as keys in a dictionary. Reason (R): Dictionary keys must be immutable data types.
Anonymous Quiz
27%
Both A and R are true and R explains A
18%
Both A and R are true but R does not explain A
27%
A is false but R is true
27%
A is true but R is false
Q7/10: Which keyword is used to define a user-defined function in Python?
Anonymous Quiz
7%
func
14%
define
71%
def
0%
function
Q8/10: What is the default return value of a function that does not contain a return statement?
Anonymous Quiz
13%
0
60%
None
7%
False
20%
Error
Q9/10: Predict the output for: def f(a, b=[]): b.append(a); return b. What is the output of print(f(1)) followed by print(f(2))?
Anonymous Quiz
31%
[1] and [2]
31%
[1] and [1, 2]
19%
Error
19%
[1, 2] and [1, 2]
Q10/10: What are the variables or values passed in a function call called?
Anonymous Quiz
35%
Formal parameters
35%
Actual parameters
18%
Default parameters
6%
Local parameters
🎉 Quiz Finished! 🎉

Thank you for participating.

Keep learning, keep growing, and come back tomorrow for more questions!

Free Premium PDFs: acadpills.com/premium

Next quiz Wednesday at 20:00
✨ Quiz Time! ✨

Answer today's quiz questions and test your knowledge.

Every question is a step toward exam success!

FREE Premium PDFs Available Here: acadpills.com/premium

Good luck!