LVL3 Quiz2

LVL3 Quiz2

9th - 12th Grade

7 Qs

quiz-placeholder

Similar activities

Bài 22: Thực hành tạo bảng dữ liệu có tham chiếu

Bài 22: Thực hành tạo bảng dữ liệu có tham chiếu

11th Grade

10 Qs

Written Work 4 (.NET Technology)

Written Work 4 (.NET Technology)

12th Grade

10 Qs

BÀI 19. THỰC HÀNH TẠO LẬP CƠ SỞ DỮ LIỆU VÀ CÁC BẢNG

BÀI 19. THỰC HÀNH TẠO LẬP CƠ SỞ DỮ LIỆU VÀ CÁC BẢNG

11th Grade

10 Qs

Chapter 20 - Spreadsheets

Chapter 20 - Spreadsheets

9th Grade

10 Qs

html 1

html 1

1st Grade - University

10 Qs

Computers Software

Computers Software

9th Grade

10 Qs

integration

integration

2nd Grade - University

10 Qs

Konsep Berpikir Komputasional

Konsep Berpikir Komputasional

11th Grade - University

10 Qs

LVL3 Quiz2

LVL3 Quiz2

Assessment

Quiz

Information Technology (IT)

9th - 12th Grade

Practice Problem

Hard

Created by

Mehmet Yetginer

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

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

Media Image

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?

cursor.fetchone()

cursor.fetchall()

cursor.getall()

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