x = "apple"
Mana saja pilihan yang akan mencetak huruf p?
Quiz String, Text Files, Exception
Quiz
•
Syifa Nurhayati
•
Computers
•
University
•
1 plays
•
Medium
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])
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Error manakah yang paling susah dicari penyebabnya?
Semantic Error
Runtime Error
Syntax Error
9.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Proses mengidentifikasi dan menyelesaikan error disebut dengan "Debugging"?
True
False
10.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kita dapat menggunakan syntax "try" tanpa menggunakan "except"
True
False
Explore all questions with a free account
10 questions
Bootstrap
Quiz
•
University
10 questions
Asesmen Pengetahuan Mengenal Microsoft PowerPoint
Quiz
•
University
10 questions
Python
Quiz
•
University
10 questions
Java quiz based on inheritance
Quiz
•
University
11 questions
Quiz 7
Quiz
•
University
10 questions
MS Excel - Day 03
Quiz
•
University
10 questions
Bahasa Pemrograman Python
Quiz
•
University
10 questions
Python - Functions
Quiz
•
University
17 questions
CAASPP Math Practice 3rd
Quiz
•
3rd Grade
15 questions
Grade 3 Simulation Assessment 1
Quiz
•
3rd Grade
20 questions
math review
Quiz
•
4th Grade
19 questions
HCS Grade 5 Simulation Assessment_1 2425sy
Quiz
•
5th Grade
16 questions
Grade 3 Simulation Assessment 2
Quiz
•
3rd Grade
21 questions
6th Grade Math CAASPP Practice
Quiz
•
6th Grade
13 questions
Cinco de mayo
Interactive video
•
6th - 8th Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
7 questions
Food Webs and Energy Pyramids: Bedrocks of Biodiversity
Interactive video
•
11th Grade - University
25 questions
APUSH Decades Review
Quiz
•
9th Grade - University
12 questions
Scientific Notation
Quiz
•
University
96 questions
World History 1 Sol Review
Quiz
•
9th Grade - University
22 questions
Spanish subjunctive
Quiz
•
9th Grade - University
7 questions
Text Structure and Genre
Interactive video
•
4th Grade - University
20 questions
The Giver - Chapter 1-5
Quiz
•
KG - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University