Search Header Logo

on kiem tra Giua ky 2_tin 11

Authored by Phan Thị Hà

Computers

KG

Used 24+ times

on kiem tra Giua ky 2_tin 11
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

/ Cho đoạn chương trình

                 s:=2; a:=1;

                 while not(s*2 > 3) do

                         begin

                                 a:= a +2;

                                 s:= s + 1;

                         end;

Kết thúc đoạn chương trình giá trị của biến s và a lần lượt là

2 và 1

1 và 2

3 và 3

một kết quả khác

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Trong các khai báo sau, khai báo nào là đúng

Var  a:array[2..-1] of integer;

Var  a:array[1..25.1] of boolean;

Var  a:array[1.. 20/10] of real;

Var  a:array[-1..10 mod 3] of word;

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Trong các hàm và thủ tục sau, hàm và thủ tục nào cho kết quả là một số nguyên

copy(S,vt,n)

insert(S1,S2,vt)

length(s)

delete(s,vt,n)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cho đoạn chương trình

                 s:=1;

                 for i:= -1 to 3 do s:= s*i;

Kết thúc đoạn chương trình giá trị biến s là:

-120

0

120

một kết quả khác

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Trong ngôn ngữ lập trình Pascal, câu lệnh nào sau đây đúng?

for i=1 to 5 do s:=s+2;

for i:=1 to -5 do s:=s*i;

for i:= 1 to 4 do s= -i;

for i:=5 downto 1; do s:=s+i;

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Trong ngôn ngữ lập trình Pascal, câu lệnh nào sau đây đúng

if a ≠ b then x := a else x :=b;

if a := b then x := a else x :=b;

if a > b then x := b else x :=a;

    if a < b then x := a + b; else x := b;

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cho khai báo sau:

                 Var a: array[1..20 div 3] of integer;

Tổng số phần tử trong mảng là

12

20

6

một kết quả khác

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?