Kiểu Xâu
Quiz
•
Computers
•
8th - 11th Grade
•
Practice Problem
•
Medium
Used 124+ times
FREE Resource
Enhance your content in a minute
16 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Cho xâu s := ‘123456789’, sau khi thực hiện thủ tục delete(s,3,4) thì biến S chứa giá trị nào sau đây:
‘12789’
‘1256789’
‘123789’
Xâu rỗng
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Trong xâu, câu lệnh sau làm gì?
For i:=1 to length(a) do write(a[i]);
Xuất xâu a theo thứ tự đã nhập
Xuất ra kí tự đầu của xâu a
Xuất xâu a theo thứ tự ngược
Xuất ra kí tự cuối của xâu a
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Để xóa đi kí tự đầu tiên của xâu S ta viết:
Delete (S, 1, 1);
Delete (S, 1, i);
Delete (S, Length(S), 1);
Delete (S, i, 1);
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Để khai báo kiểu xâu trực tiếp ta sử dụng cú pháp nào?
Var <tên biến> : String[độ dài lớn nhất của xâu];
Var <tên biến> = <tên kiểu>;
Var <tên biến> = String[độ dài lớn nhất của xâu];
Var <tên biến> : <tên kiểu>;
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Cho khai báo sau:
Var hoten : string;
Phát biểu nào dưới đây là đúng?
Xâu có độ dài lớn nhất là 255;
Xâu có độ dài lớn nhất là 0;
Cần phải khai báo kích thước của xâu sau đó;
Câu lệnh sai vì thiếu độ dài tối đa của xâu;
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Cho S1:='Bien dao que huong';
S2:= upcase(S1[10]);
S2 có giá trị là:
'Q'
'Bien Dao Que Huong'
'Que'
‘Bien’
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Câu lệnh nào xóa kí tự cuối cùng của xâu a?
delete(a, length(a), 1);
delete(a, 1, 255);
delete(a, 255, 1);
delete(a, 1, length(a));
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
17 questions
BÀI 7. Thực hành tìm kiếm thông tin trên internet
Quiz
•
11th Grade
20 questions
BÀI THI THỬ MÔN TIN HỌC LỚP 4
Quiz
•
1st - 8th Grade
20 questions
[Tin 8_Spreadsheet]_Kiểm tra thường xuyên
Quiz
•
8th Grade
16 questions
đề 1
Quiz
•
6th - 8th Grade
20 questions
ÔN TẬP CUỐI KÌ 1 LỚP 8
Quiz
•
8th Grade
15 questions
Quiz tổng kết khóa học
Quiz
•
6th - 8th Grade
18 questions
LỚP 12 - CHỦ ĐỀ B - BÀI 1 + 2 MẠNG MT VÀ GIAO THỨC
Quiz
•
10th Grade - University
20 questions
Tin học 11 chương I
Quiz
•
1st - 12th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
Discover more resources for Computers
18 questions
Company Logos
Quiz
•
6th - 8th Grade
13 questions
PowerPoint Basics
Quiz
•
6th - 8th Grade
10 questions
App Creators Lesson 2.1-2.4
Quiz
•
8th Grade
10 questions
Exploring Computer Science Careers and Subfields
Interactive video
•
6th - 10th Grade
15 questions
AP CSP Unit 4
Quiz
•
10th - 12th Grade
23 questions
Prog 1 Python Q1 Practice
Quiz
•
9th - 12th Grade
