Search Header Logo

11_KieuXau

Authored by Thanh Nhàn Bùi

Computers

11th Grade

Used 99+ times

11_KieuXau
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Chọn câu đúng cú pháp:

Var s : string [30];

Var s = string[30];

Var s : string(30);

Var s := string;

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Với s là biến kiểu chuỗi và s có giá trị: S:= ‘nguyen khuyen’;

Sau câu lệnh Delete(s,3,4); chuỗi s chứa các ký tự:

‘ng khuyen’

‘ngu khuyen’

‘ngukhuyen’

‘ngkhuyen’

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Khi chạy chương trình:

Var s1, s2 : string;

Begin

s1:=’123’;

s2:=’456’;

write (s1+s2);

end.

Kết quả in ra là:

‘123456’

579

123456

Cả 3 câu đều sai

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cho khai báo:

Var ho, ten : string[15];

Lệnh nào sai:

write(‘Ho ten la:’ + ho + ten);

write(‘Ho ten la:’; ho ; ten);

write(‘Ho ten la:’, ho, ten);

write(‘Ho ten la:’, ho + ten);

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Cho s là biến chuỗi, sau khi thực hiện 2 lệnh:

s := copy(‘PASCAL VERSION 5.5’,8,7);

write(s);

Kết quả in trên màn hình output là:

VERSION 5.5

5.5

VERSION

PASCAL

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cho s là biến chuỗi, sau khi thực hiện bốn lệnh: s:=’ABCDEF’;

delete(s,3,2);

insert(‘XYZ’,s,2);

write(s);

Kết quả in lên màn hình là:

AXYZBCDEF

AXYZBEF

ABXYZEF

AXYZ

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Khi chạy chương trình:

Var s : string;i, l : integer;

begin

s := ‘Hom nay thuc tap’;

x:= length(S);

for i:=1 to xdo

if (s[i]>=‘a’) and (s[i]<=‘z’) then s[i] := upcase(s[i]);

write (s);

end.

Chương trình in ra:

HOM NAY THUC TAP

Hom nay thuc tap

hom nay thuc tap

Hom Nay Thuc Tap

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?