
Python Quiz 4 YUYAPZEK
Authored by Yunus Emre
Education
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
print(type(True))
Yukarıda verilen kod konsola aşağıdakilerden hangisini yazdırır?
<class 'bool'>
Hata verir
<class 'float'>
<class 'int'>
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
numbers = (1,2,3)
numbers.append(1)
print(numbers)
Yukarıdaki kod bloğu çalıştırıldığında konsola aşağıdakilerden hangisini yazdırır?
1,2,3
"1, 2, 3, 1"
1,2,3,1
Hata verir.
Answer explanation
numbers değişkeninin veri tipinin Tuple olduğunu eşitlendiği sayıların '()' içerisine alınmasından anlıyoruz. Tuple veri tipi değiştirilmeye izin vermediği için append methoduna sahip değildir. Dolayısıyla kod çalıştırıldığında hata verir.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
my_dictionary = {
"name" : "John",
"age" : 30
}
print(my_dictionary) ifadesi konsola aşağıdakilerden hangisini yazdırır?
<class 'dict'>
John, 30
{'name': 'John', 'age': 30}
Hata verir.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
a = 10
b = 5
a *= b
print(a) ifadesi konsola aşağıdakilerden hangisini yazdırır?
10
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
a = 3
a **= a
print(a) kodu konsola aşağıdakilerden hanginisini yazdırır?
Hata verir.
27
3
9
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
a = [1,2,3]
b = [1,2,3]
print(a is b) kodu konsola aşağıdakilerden hangisini yazdırır?
True
Hata verir.
False
a = b
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
a = "hello"
b = "hello"
c = 7
d = 9
result = (a == b) or (c==d)
print(result) kodu konsola aşağıdakilerden hangisini yazdırır?
True
False
Hata verir
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?
Similar Resources on Wayground
5 questions
222 sayılı ilköğretim kanunu
Quiz
•
University
14 questions
Özel Eğitime Giriş (Formasyon)
Quiz
•
University
15 questions
DKAB
Quiz
•
University
10 questions
Danışmanlıkta Kullanılan Yaklaşımlar
Quiz
•
University
10 questions
TEMEL ARAPÇA KURALLARI
Quiz
•
University
7 questions
SINIF İÇİ İLETİŞİM VE ETKİLEŞİM
Quiz
•
University
6 questions
Toplumda Kurallar ve Sorumluluklarımız
Quiz
•
University
5 questions
Ölçmede Hata
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade