Kiểu Xâu

Quiz
•
Computers
•
8th - 11th Grade
•
Medium
Used 124+ times
FREE Resource
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
Similar Resources on Wayground
21 questions
Ôn tập

Quiz
•
8th Grade
11 questions
KIỂU XÂU - PYTHON

Quiz
•
10th Grade
15 questions
Kiểm tra Tin học 8 T5

Quiz
•
8th Grade
20 questions
Tin 10 - Bài 12 CDF - Kiểu dữ liệu xâu kí tự

Quiz
•
10th Grade
12 questions
KTCHK2 Tin 8

Quiz
•
6th - 8th Grade
20 questions
KTTX k10

Quiz
•
11th Grade
11 questions
BAI 24_LỚP 10

Quiz
•
10th Grade
20 questions
ÔN TẬP CUỐI HKII_TIN 8

Quiz
•
8th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
40 questions
LSHS Student Handbook Review: Pages 7-9

Quiz
•
11th Grade