Pascal dasturlash tilidan test savollari va javoblari. Paskal tilida 70 ta elementdan iborat butun turdagi chiziqli massiv to’g’ri ko’rsatilgan javobni kursating


Download 19.47 Kb.
bet4/4
Sana09.01.2022
Hajmi19.47 Kb.
#266390
1   2   3   4
Bog'liq
Pascal-dasturlash-tilidan-test-Javoblari-bilan

A)4 B) 1 C) 3 D) 2

14. Paskal dasturi lavhasidagi natijani aniqlang.

begin X:=2; p:=2; 1:P:=P*(2*x-2); X:=X+3; if X<=6 then goto 1; writeln(P); end.

A)16 B) 20 C) 32 D) 24

15. Paskal dasturi lavhasidagi hisob natijasini

aniqlang. begin a:=12; b:=14; c:=10; if(a>b) or (b>c)

then y:=a+b-c else y:=a-b+c; writeln(b); end.

  1. 8 B) 6 C) 16 D) 14

16. Paskal dasturi lavhasidagi S ning qiymati

nimaga teng?

begin S:=0; for I:=1 to 3 do S:=S+2*i; writeln(S); end.

A)24 B) 48 C) 96 D) 12

17. Dastur lavhasida X qaysi qiymatni qabul qiladi?

VAR i,j,X: intejer;

BEGIN FOR i:=1 TO 2 DO FOR j:=2 DOWNTO 1 DO X:=i+j; END.

A)3 B) 7 C) 4 D) 10
18. Takrorlanishlar sonini aniqlang I:=1999; while i<2016 do i:=i+1;

A)0 B) 18 C) 17 D) 19

19. a=10, b=4, c=5, d=-5 bo’lsa

if b

A) 35 B) 17 C) 45 D) -13

20. a:=10; b:=5; c:=sqr(b)+abs(-a);

write(a); end. ekranga chiqadigan natijani toping.

A) 15 B) 10 C) 35 D) 45






















B

C

C

D

D

C

D

B

B

A





















B

D

B

C

D

D

A

C

C

B

Download 19.47 Kb.

Do'stlaringiz bilan baham:
1   2   3   4




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling