
Pemrograman 2: Regular Expressions (part 1)
Authored by Tri Muliawati
Computers
University
Used 4+ 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
Apa nama library yang digunakan untuk menemukan pola pada sebuah teks (string)?
regex
regular
expression
search
2.
MULTIPLE SELECT QUESTION
45 sec • 2 pts
Apa nama fungsi yang digunakan untuk menemukan string yang sesuai pola?
re.search()
re.sub()
re.match()
re.find()
3.
MULTIPLE SELECT QUESTION
45 sec • 2 pts
Manakah diantara pernyataan berikut yang benar?
Pola '\s' digunakan untuk menemukan semua karakter tunggal berupa spasi, enter, atau tab
Pola '\d' digunakan untuk menemukan dictionary
Pola '.' digunakan untuk menemukan semua karakter tunggal selain tab
Pola '\w' digunakan untuk menemukan semua karakter tunggal berupa digit, huruf besar, huruf kecil, atau underscore
4.
MULTIPLE SELECT QUESTION
45 sec • 3 pts
Manakah diantara isian text berikut yang akan menghasilkan "Match is found"?
text = "alami"
text = "salam"
text = "aslam"
text = "alim"
5.
MULTIPLE SELECT QUESTION
45 sec • 3 pts
Manakah diantara isian text berikut yang akan menghasilkan "Match is found"?
text = "3324600100"
text = "lely_01x"
text = "900 hari"
text = "hambatan 1k2"
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Bagaimana cara agar regex bersifat case insensitive?
Mengisi parameter flags dengan re.CASESENSITIVE
Mengisi parameter flags dengan re.IGNORECASE
Mengisi parameter flags dengan re.CASEINSENSITIVE
Mengisi parameter flags dengan re.ASCII
7.
MULTIPLE SELECT QUESTION
45 sec • 3 pts
Manakah diantara isian text berikut yang akan menghasilkan "Match is found"?
text = "-100K"
text = "lely_01x"
text = "900 hari"
text = "hambatan 1k2"
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
Quiz Aplikasi Pengolah Angka
Quiz
•
10th Grade - University
10 questions
Quiz 1: Introducción a Windows Server
Quiz
•
University
10 questions
Let's Play Together
Quiz
•
University - Professi...
10 questions
Data analytics basics
Quiz
•
University
10 questions
Kuiz Microsoft Access
Quiz
•
University
10 questions
WORD ĐỀ 6
Quiz
•
University
15 questions
Graphics Design Class test 5th Batch
Quiz
•
University
10 questions
MS Office
Quiz
•
University
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