Search Header Logo

Kiem tra 15p - Lan 2 Pascal

Authored by Phạm Huu Tam

Computers

11th Grade

Used 28+ times

Kiem tra 15p - Lan 2 Pascal
AI

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

Khai báo sau đây có ý nghĩa gì?

hoten : string[25];

Khai báo biến "hoten" phải nhập đủ 25 ký tự

Khai báo biến "hoten" có thể nhập tối đa 25 ký tự

Khai báo biến "hoten" phải nhập đủ 25 ký tự chữ hoa

Khai báo biến "hoten" phải nhập đủ 25 ký tự chữ thường

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Khi gán một xâu (chuỗi),

hoten := 'Le Huynh Anh Ngoc';

Sau đó xuất lên màn hình bằng lệnh:

write(hoten[4]);

Trên màn hình sẽ xuất hiện ký tự:

H

L

A

N

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Gán một xâu:

s := 'Turbo Pascal';

Xuất lên màn hình bằng lệnh:

writeln(length(s));

Trên màn hình sẽ xuất hiện:

Turbo Pascal

Turbo

Pascal

12

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Gán hai xâu:

s1 := '34';

s2:= '12';

Cộng 2 xâu: s := s2 + s1;

Dùng lệnh: writeln(s);

Trên màn hình xuất hiện:

1234

3412

46

34

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Ta dùng phép gán:

s1 := 'Pascal';

s2 := 'Turbo Pascal 7.0';

Xuất lệnh:

writeln(pos(s1, s2));

Trên màn hình xuất hiện:

Thông báo lỗi

Turbo Pascal 7.0

Turbo

7

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Dùng lệnh:

ch := 'b';

Sau đó xuất lệnh:

write(upcase(ch));

Trên màn hình xuất hiện:

Thông báo lỗi

b

B

ch

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Khai báo biến xâu cho phép tối đa bao nhiêu ký tự

256

255

Tùy thích

100

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?