Điều kiện câu lệnh

Điều kiện câu lệnh

8th Grade

10 Qs

quiz-placeholder

Similar activities

Adventure game project

Adventure game project

7th - 8th Grade

12 Qs

What is a program slides(6:16)

What is a program slides(6:16)

8th - 12th Grade

10 Qs

Cyber Security KS4

Cyber Security KS4

8th - 12th Grade

15 Qs

Tables in HTML

Tables in HTML

7th - 8th Grade

10 Qs

Linux-2 Quiz 2 -- LAMP

Linux-2 Quiz 2 -- LAMP

1st - 12th Grade

15 Qs

HTML -znaczniki 1

HTML -znaczniki 1

7th Grade - University

15 Qs

TIN8-HK1-KTTX1

TIN8-HK1-KTTX1

8th Grade

10 Qs

แบบทดสอบก่อนเรียน Powerpoint

แบบทดสอบก่อนเรียน Powerpoint

6th - 8th Grade

10 Qs

Điều kiện câu lệnh

Điều kiện câu lệnh

Assessment

Quiz

Computers

8th Grade

Practice Problem

Hard

Created by

Phượng Trần

Used 29+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Trong Pascal, câu lệnh điều kiện nào sau đây được viết đúng?

if a := 1 then a := a + 1;

if a > b else write(a);

if (a mod 2) = 0 then write('So khong hop le');

if x = y; then writeln(y);

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu lệnh điều kiện dạng đầy đủ là:

If < Điều kiện> then < Câu lệnh 1 >; Else < Câu lệnh 2 >;

If < Điều kiện> then < Câu lệnh >;

If < Điều kiện> then < Câu lệnh 1 >, < Câu lệnh 2 >;

If < Điều kiện > then < Câu lệnh 1 > Else < Câu lệnh 2 >;

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Hãy cho biết giá trị của biến X bằng bao nhiêu sau khi thực hiện câu lệnh:

if (45 mod 3 ) = 0 then X :=X+2;

(Biết rằng trước đó giá trị của biến X = 5)

5

7

9

11

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Ta có 2 lệnh sau:

x:= 8; if x>5 then x := x +1;

Giá trị của x là bao nhiêu?

5

6

8

9

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Các câu lệnh Pascal nào sau đây được viết đúng?

If x:= 5 then a = b;

If x > 4; then a:= b;

If x > 4 then a:=b; m:=n;

If x > 4 then a:=b; else m:=n;

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Để tìm giá trị lớn nhất của 2 số a, b thì ta viết:

Max:=a; If b>Max then Max:=b;

If (a>b) then Max:=a; If (b>a) then Max:=b;

Max:=b; If a>Max then Max:=a;

Tất cả đều đúng.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If ... Then ... Else là:

Vòng lặp xác định

Vòng lặp không xác định

Câu lệnh điều kiện dạng thiếu

Câu lệnh điều kiện dạng đủ

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?

Discover more resources for Computers