TIU Quiz-10
Quiz
•
Computers
•
University
•
Hard
Rahul Mahato
Used 5+ times
FREE Resource
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
10 questions
C Programming Quiz-1
Quiz
•
University
15 questions
C# Cơ bản
Quiz
•
University
15 questions
Java Bootcamp Day 4
Quiz
•
University
15 questions
Milking Minds 2 17-01-24
Quiz
•
University
10 questions
Chapter 4 การสืบทอด Class
Quiz
•
University
15 questions
Java Programming
Quiz
•
University
15 questions
code trivia
Quiz
•
University
10 questions
C Programming - Basics 001
Quiz
•
University
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
Discover more resources for Computers
11 questions
NFL Football logos
Quiz
•
KG - Professional Dev...
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms
Quiz
•
11th Grade - University
38 questions
Unit 6 Key Terms
Quiz
•
11th Grade - University
20 questions
La Hora
Quiz
•
9th Grade - University
7 questions
Cell Transport
Interactive video
•
11th Grade - University
7 questions
What Is Narrative Writing?
Interactive video
•
4th Grade - University