
câu hỏi TN (một số lệnh về xâu kí tự)

Quiz
•
Science
•
10th Grade
•
Medium
Đỗ Mai Hạnh
Used 4+ times
FREE Resource
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Biểu thức kiểm tra <xâu 1> nằm trong <xâu 2> là:
<xâu 1> in <xâu 2>
<xâu 2> in <xâu 1>
<xâu 1> on <xâu 1>
<xâu 1> of <xâu 2>
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cú pháp đơn của lệnh find ( ) là:
<xâu mẹ> . find(<xâu con>)
<xâu con> . find(<xâu mẹ>)
<xâu con> : find(<xâu mẹ>)
<xâu mẹ> : find(<xâu con>)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cú pháp đầy đủ của lệnh find() là:
<xâu mẹ> . find(<xâu con>,start)
<xâu con> . find(<xâu mẹ,start>)
<xâu mẹ> . find(<xâu con,start>)
<xâu mẹ> : find(<xâu con,start>)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cú pháp của lệnh split() là:
<xâu mẹ> . split(<kí tự tách>)
<xâu mẹ> . split(<xâu con>)
<xâu mẹ> : split(<kí tự tách>)
<xâu mẹ> : split(<xâu con>)
5.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
Cú pháp của lệnh join() là:
kí tự nối’ . join(<danh sách>)
‘kí tự nối’ : join(<danh sách>)
‘kí tự nối’ . join(<xâu mẹ>)
‘kí tự nối’ . join(<xâu con>)
6.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
Phát biểu nào sau đây là sai?
Lệnh join() và lệnh split() có chức năng giống nhau là dùng để nối xâu
Để tìm một xâu trong một xâu khác có thể dùng toán tử in hoặc lệnh find(). Lệnh find() trả về vị trí của xâu con trong xâu mẹ
Lệnh split() tách một xâu thành các từ và đưa vào một danh sách
Lệnh join() có tác dụng ngược với lệnh plit(), có chức năng nối các phần tử (là xâu) của một danh sách thành một xâu
7.
FILL IN THE BLANK QUESTION
1 min • 2 pts
Các dòng lệnh sau đây cho kết quả là gì?
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Is It a Mineral

Quiz
•
6th Grade - University
8 questions
วิชาการ Quiz ม.ปลาย 28/10/63

Quiz
•
10th - 12th Grade
10 questions
Dược lý- Dược lý đại cương

Quiz
•
KG - Professional Dev...
15 questions
Le Chatelier's Principle

Quiz
•
10th Grade
14 questions
Le cycle de l'eau

Quiz
•
1st - 12th Grade
9 questions
BootCamp: HTML

Quiz
•
9th Grade - University
17 questions
LINEAR FUNCTIONS AND INEQUALITIES

Quiz
•
8th - 10th Grade
8 questions
Kuis Tekanan Zat Padat

Quiz
•
8th Grade - University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Science
10 questions
Exploring the Scientific Method

Interactive video
•
6th - 10th Grade
10 questions
Exploring Chemical and Physical Changes

Interactive video
•
6th - 10th Grade
10 questions
Exploring Newton's Laws of Motion

Interactive video
•
6th - 10th Grade
10 questions
Exploring Metals, Nonmetals, and Metalloids

Interactive video
•
6th - 10th Grade
20 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
10 questions
Exploring Earth's Spheres and Their Interactions

Interactive video
•
6th - 10th Grade
10 questions
Exploring the Periodic Table

Interactive video
•
6th - 10th Grade
10 questions
Exploring Atoms, Elements, Molecules, and Compounds

Interactive video
•
6th - 10th Grade