
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
10 questions
Davranışların aşamalı olarak sınıflandırılması
Quiz
•
University
10 questions
Psikolojiye Giriş 1 - Mini Sınav
Quiz
•
University
10 questions
Ögretim teknolojileri
Quiz
•
University
10 questions
Psikoloji
Quiz
•
University
10 questions
Oyun ve Çocuk
Quiz
•
University
9 questions
Sunum/İnfografik
Quiz
•
University
6 questions
teknoloji bağımlılığı
Quiz
•
University
10 questions
SON Test ATIKSIZ YAŞIYORUM
Quiz
•
1st Grade - University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Education
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
20 questions
christmas songs
Quiz
•
KG - University
20 questions
Holiday Trivia
Quiz
•
9th Grade - University
15 questions
Holiday Movies
Quiz
•
University
14 questions
Christmas Trivia
Quiz
•
3rd Grade - University
20 questions
Christmas Trivia
Quiz
•
University
8 questions
5th, Unit 4, Lesson 8
Lesson
•
KG - Professional Dev...
20 questions
Disney Trivia
Quiz
•
University