
Quiz String, Text Files, Exception
Authored by Syifa Nurhayati
Computers
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 SELECT QUESTION
45 sec • 1 pt
x = "apple"
Mana saja pilihan yang akan mencetak huruf p?
print(x[2])
print(x[1])
print(x[-1])
print(x[-2])
2.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Angka terakhir yang dicetak program tersebut adalah...
3.
FILL IN THE BLANK QUESTION
1 min • 1 pt
a = "one"
b = "two"
print((a+b+a)*1) akan menghasilkan output...
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
print("{2}-{0}-{1}".format('September', 21, 2022))
21-September-2022
September-21-2022
2022-September-21
Syntax Error
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Agar tercetak output seperti pada gambar, kode yang tepat adalah ...
print(f"{judul:.>50d}{halaman:.<5d}")
print(f"{judul:.<50s}{halaman:.>5d}")
print(f"{judul:.<50d}{halaman:.>5f}")
print(f"{judul:.>50s}{halaman:.<5d}")
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Method yang akan mengembalikan setiap baris menjadi elemen dalam list adalah ...
read()
open()
readline()
readlines()
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Untuk membaca kata "Semangat" apa yang harus dilakukan?
file = open('pesan.txt', "r")
file.read(8)
file.read(7)
file.read(0,7)
file.read([0:7])
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
7 questions
Backup, Restore, and Recovery
Quiz
•
9th Grade - University
14 questions
Linux: Users and Groups
Quiz
•
9th Grade - University
15 questions
tik kelas 7
Quiz
•
1st Grade - University
15 questions
Dasar Desain Grafis
Quiz
•
12th Grade - University
15 questions
sistema de archivos
Quiz
•
University
10 questions
TOPIC 1 COMPUTER NETWORK
Quiz
•
University
10 questions
UTS Aplikasi Komputer 4C
Quiz
•
University
11 questions
Câu hỏi ôn tập HKII_Tin học 6
Quiz
•
8th Grade - Professio...
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
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th 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