
Pemrograman 2: Regular Expressions (2/2)
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
Manakah diantara script di bawah yang bisa menggantikan script berikut.
found = re.search(r'^\d{3,}', text)
found = re.search(r'^\d{3,}$', text)
found = re.search(r'\d{3,}$', text)
found = re.search(r'\d{3,}', text)
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Manakah diantara script di bawah yang bisa menggantikan script berikut.
found = re.search(r'^\d{3,}', text)
found = re.search(r'^\d{3,}$', text)
found = re.search(r'\d{3,}$', text)
found = re.search(r'\d{3,}', text)
3.
MULTIPLE SELECT QUESTION
45 sec • 2 pts
Manakah potongan string / text yang memenuhi pola di atas?
'@Alpha,'
'@Alpha'
'@gamma'
'@g'
4.
MULTIPLE SELECT QUESTION
45 sec • 5 pts
Manakah potongan string / text yang memenuhi pola di atas?
bakso urat
(1) bakso urat
nasi goreng
(2) nasi goreng
5.
MULTIPLE SELECT QUESTION
45 sec • 3 pts
Manakah potongan string / text yang memenuhi pola di atas?
salad
(3)salad
"bahagia"
bahagia
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa nama fungsi library regex yang digunakan untuk menggantikan suatu text yang memenuhi pola dengan text lain?
re.match()
re.replace()
re.sub()
re.split()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa nama fungsi library regex yang digunakan untuk memisahkan suatu text yang memenuhi pola dan menyimpan hasilnya dalam sebuah list?
re.match()
re.replace()
re.sub()
re.split()
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
IT Trends, Issues, and Challenges
Quiz
•
University
10 questions
Démo 2: CSS
Quiz
•
University
10 questions
JSTL and EL
Quiz
•
University
15 questions
REACTOR
Quiz
•
University
15 questions
HTML BASICS 1
Quiz
•
University
15 questions
Computer DESKTOP - CESA
Quiz
•
7th Grade - University
10 questions
TestOut Desktop Pro Plus 1.1.18 Concept Questions
Quiz
•
7th Grade - University
10 questions
PENGENALAN UNITY
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