
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
15 questions
Preguntas sobre Excel 2016
Quiz
•
6th Grade - University
15 questions
ADB Quiz #1
Quiz
•
University
10 questions
Python with DataScience
Quiz
•
7th Grade - University
9 questions
Rounding Numbers in Python
Quiz
•
University
10 questions
Quiz Elektronika dan PCB Design: Tantangan Cerdasmu!
Quiz
•
University
10 questions
UTILITY PROGRAM
Quiz
•
University
15 questions
GIS Unit III
Quiz
•
University
11 questions
Email of request
Quiz
•
12th Grade - Professi...
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