
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
10 questions
Information Systems 2
Quiz
•
11th Grade - University
15 questions
DIGITAL MARKETING
Quiz
•
University
12 questions
Python Quiz
Quiz
•
University
11 questions
Unit 2: Software Baseline Test
Quiz
•
8th Grade - University
15 questions
Quiz 2 PKS II - TPB 34
Quiz
•
University
10 questions
APLIKOM W4
Quiz
•
University
11 questions
Big Data
Quiz
•
University
10 questions
Lesson 2 - Passing Data to Subsystems
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
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