TIU Quiz-10
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
Rahul Mahato
Used 5+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct way to connect to an SQLite3 database in Python?
db = sqlite3.connect('database_name')
db = sqlite3.connection('database_name')
db = sqlite3.Connection('database_name')
db = sqlite3.database('database_name')
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What method is used to commit changes to the database in SQLite3?
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you create a new table named students with columns id, name, and age?
cursor.execute("CREATE TABLE students (id INT, name TEXT, age INT)")
cursor.execute("NEW TABLE students (id INT, name TEXT, age INT)")
cursor.execute("CREATE students (id INT, name TEXT, age INT)")
cursor.execute("TABLE students (id INT, name TEXT, age INT)")
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is method overriding in OOP?
Defining a method with the same name but different parameters in the same class
Defining a method with the same name and parameters in a derived class
Using multiple methods with different names
Redefining a method with different parameters in the same class
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement about class and object is incorrect?
A class is a blueprint for objects.
An object is an instance of a class.
Classes can have attributes and methods.
Objects can inherit classes.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you create an instance of a class named Car?
Car = new Car()
my_car = Car()
my_car = Car.create()
Car my_car = Car()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the init method in a Python class?
To initialize a class attribute
To initialize an instance of a class
To define a class method
To delete an instance of a class
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
15 questions
tik kelas 7
Quiz
•
1st Grade - University
10 questions
Herencia y Paquetes
Quiz
•
University
15 questions
PYTHON UNIT I MCQS
Quiz
•
University
11 questions
Python basics
Quiz
•
University
12 questions
AppsLab_Q3
Quiz
•
1st Grade - Professio...
15 questions
Basic Java Quiz
Quiz
•
University
15 questions
BASIC C PROGRAMMING
Quiz
•
University
10 questions
Pengantar Coding
Quiz
•
University
Popular Resources on Wayground
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
15 questions
Solving Equations with Variables on Both Sides Review
Quiz
•
8th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
7 questions
Different Types of Energy
Interactive video
•
4th Grade - University
7 questions
Transition Words and Phrases
Interactive video
•
4th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Biomolecules (Updated)
Interactive video
•
11th Grade - University
34 questions
Unit 5 Review - The Middle Ages in Europe-B
Quiz
•
9th Grade - University
26 questions
Day2 classwork: Permutation and combination
Quiz
•
2nd Grade - University
5 questions
Using Context Clues
Interactive video
•
4th Grade - University
