instructiunile If/case/for

instructiunile If/case/for

8th Grade

14 Qs

quiz-placeholder

Similar activities

Test sumativ: Algoritmi

Test sumativ: Algoritmi

8th Grade

19 Qs

Ôn tập tin 8

Ôn tập tin 8

8th Grade

18 Qs

test 8

test 8

8th Grade

10 Qs

Bài kiểm tra thường xuyên lần 1 (11/6)

Bài kiểm tra thường xuyên lần 1 (11/6)

KG - 12th Grade

10 Qs

Ôn tập GK 2 Tin học 8

Ôn tập GK 2 Tin học 8

8th Grade

11 Qs

Evaluare clasa 8

Evaluare clasa 8

8th Grade

16 Qs

XI_осн_кон

XI_осн_кон

6th - 8th Grade

10 Qs

Циклы с условием

Циклы с условием

8th Grade

10 Qs

Ветвления в Паскале

Ветвления в Паскале

8th Grade

16 Qs

TIN HỌC 8 - CĐ6

TIN HỌC 8 - CĐ6

8th Grade

19 Qs

Tablouri unidimensionale

Tablouri unidimensionale

8th Grade

14 Qs

Python test

Python test

6th - 8th Grade

15 Qs

Câu lệnh điều kiện

Câu lệnh điều kiện

8th Grade

15 Qs

Ai nhanh tay hơn

Ai nhanh tay hơn

8th Grade

15 Qs

bài cũ chương 2-11

bài cũ chương 2-11

KG - 10th Grade

10 Qs

instructiunile If/case/for

instructiunile If/case/for

Assessment

Quiz

Computers

8th Grade

Medium

Created by

natalia tirdea

Used 4+ times

FREE Resource

14 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

1.Ce valoare va afişa următoarea secvenţă de program? Argumentaţi răspunsul.

a=5; b=10;

if a=b then write(a+b) else write(sqr(a));

25

15

5

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

2.Instrucțiunea care ne permite să alegem nu din 2 dar din mai multe alternative se numește ...

if

case

for

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

3.Instrucțiunea Case,avem declarația de mai jos:

case m of                   

1..4 : writeln(‘rau’);                   

5..6 : writeln(‘suficient’);                   

7..8 : writeln(‘bine’);                 

9..10 : writeln(‘excelent’);

De ce tip de date este variabila m?

Integer

Real

Char

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

4. if (expresie) instrucțiunea 1

else instrucțiunea 2;

Dacă expresia este adevărată atunci se execută...

Instrucțiunea 1

Instrucțiunea 2

Nu se execută nici o instrucțiune

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

5. if (expresie) instrucțiunea 1

else instrucțiunea 2;

Dacă expresia este falsă atunci se execută...

Instrucțiunea 1

Instrucțiunea 2

Nu se execută nici o instrucțiune

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

6. Ce valoare va lua variabila x după  executarea fiecărei dintre instrucţiunile ce urmează. Dacă se consideră că a=21; b=-12

  if a>b then x:=5 else x:=-7;              

x=...

-7

5

13

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

7. Fie x=5, y=4, a=0.

Care va fi valoarea lui a după executarea instrucțiunii?                             

         if x>y then a:=x+y  else  a:=x-y;

1

9

20

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?

Discover more resources for Computers