
LVL3 Quiz2
Authored by Mehmet Yetginer
Information Technology (IT)
9th - 12th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Aşağıdaki kod çalıştırıldığında ne yazdırır?
1
2
3
Hata verir
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Aşağıdaki Python sınıfında kullanılan @property dekoratörü ne işe yarar?
year_of_birth özelliğinin dışarıdan metot gibi değil, nitelik(attribute) gibi kullanılmasını sağlar
year_of_birth özelliğini salt okunur (read-only) hale getirir
year_of_birth özelliğinin sadece __init__ içinde kullanılmasını sağlar
year_of_birth özelliğini ön belleğe (cache) alarak bir kez hesaplar, tekrar hesaplamaz
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Aşağıdakilerden hangisi SQLite veritabanı dosyası oluşturur?
create database("example.db")
sqlite3.connect("example.db")
open("example.db", "w")
sqlite3.load("example.db")
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Python’da veritabanına veri ekledikten sonra kalıcı olması için hangi method çağrılmalıdır?
commit()
fetchall()
execute()
close()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
SELECT sorgusu ile veritabanındaki tüm satırları almak için hangi method kullanılır?
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Aşağıdakilerden hangisi Python’da parametreli sorgu yazmanın doğru yoludur?
cursor.execute("SELECT * FROM students WHERE id = ?", 3)
cursor.execute("SELECT * FROM students WHERE id = ?", (3,))
cursor.execute("SELECT * FROM students WHERE id = ?", "3")
cursor.execute("SELECT * FROM students WHERE id = 3")
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Hangisi id değeri 2 olan öğrencinin name alanını "Ahmet" olarak güncellemek için kullanılabilecek doğru SQL sorgusudur?
UPDATE students SET id = 2 WHERE name = "Ahmet"
MODIFY students SET name = "Ahmet" WHEN id = 2
UPDATE students SET name = "Ahmet" WHERE id = 2
CHANGE students name TO "Ahmet" WHERE id = 2
Access all questions and much more by creating a free account
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?