Aşağıdaki kodlar hangi program için yazılmıştır?
import random
while True:
rolled_num = random.randint(1,6)
print("The dice rolled and you got: ", rolled_num)
input("Press any key to roll again.")
Python Çalışması
Quiz
•
Computers
•
7th Grade
•
Medium
Kenan Çağlayan
Used 30+ times
FREE Resource
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Aşağıdaki kodlar hangi program için yazılmıştır?
import random
while True:
rolled_num = random.randint(1,6)
print("The dice rolled and you got: ", rolled_num)
input("Press any key to roll again.")
Zar atma
Rastgele harf bulma
Toplama yapma
Çarpma yapma
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Aşağıdaki kodlar hangi program için yazılmıştır?
import random
n = random.randint(1, 99)
guess = int(input("Enter an integer from 1 to 99: "))
while n != "guess":
if guess < n:
print ("guess is low")
guess = int(input("Enter an integer from 1 to 99: "))
elif guess > n:
print ("guess is high")
guess = int(input("Enter an integer from 1 to 99: "))
else:
print ("you guessed it!")
break
Zar atma
Sayı tahmini
Rastgele harf bulma
İsim tahmini
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Aşağıdaki programın çıktısı nedir?
a=4
print (a)
b=12+5
print (b)
c=b%a
print (c)
4
17
4%17
4
17
b%a
a
b
c
4
17
1
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Aşağıdaki fonksiyon kullanımı ile ilgili kodların çıktısı hangisi olabilir?
def kayit(isim, soyisim, işsis, şehir):
print("-"*30)
print("isim : ", isim)
print("soyisim : ", soyisim)
print("işletim sistemi: ", işsis)
print("şehir : ", şehir)
print("-"*30)
kayit("Fırat", "Özgül", "Ubuntu", "İstanbul")
isim : Fırat
soyisim : Özgül
işletim sistemi: Ubuntu
Fırat
Özgül
Ubuntu
İstanbul
isim : Fırat
soyisim : Özgül
işletim sistemi: Ubuntu
şehir : İstanbul
Fırat, Özgül, Ubuntu, İstanbul
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Aşağıdaki fonksiyon kullanımı ile ilgili kodların çıktısı hangisi olabilir?
def fonk(n):
if n < 0:
return 'eksi değerli sayı olmaz!'
else:
return n
f = fonk(-5)
print(f)
-5
eksi değerli sayı olmaz!
f
kod hata verir
5 questions
Dosya Yönetimi
Quiz
•
5th - 8th Grade
10 questions
BK 6 7 Sınıf Kodlama ve Robotik
Quiz
•
6th - 7th Grade
10 questions
Python Inputs
Quiz
•
7th - 8th Grade
10 questions
Python Math
Quiz
•
1st - 12th Grade
10 questions
Guess the Car Logo's
Quiz
•
2nd - 8th Grade
7 questions
akış şeması
Quiz
•
5th - 7th Grade
10 questions
9-сынып. Python массив.
Quiz
•
1st - 9th Grade
7 questions
Sunum hazırlama teknikleri
Quiz
•
5th - 7th Grade
25 questions
Equations of Circles
Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)
Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System
Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice
Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers
Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons
Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)
Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review
Quiz
•
10th Grade