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.
bet3/4
Sana09.01.2022
Hajmi19.47 Kb.
#266390
1   2   3   4
Bog'liq
Pascal-dasturlash-tilidan-test-Javoblari-bilan

A) 29 B)7 C) 31 D) 32

9. var a,b,i:integer;

begin a:=3; b:=7; begin for i:=1 to b do a:=a + b; for i:= a downto b do a:=a-1; end; write(i); end. Natijani toping

A) 5 B)7 C) 6 D) 8

10. Quyidagi operatordagi takrorlanishlar sonini aniqlang.

t:=10000; repeat t:=t/10; until t<=0.1;

A) 5 B)6 C)0 D)cheksiz

11. var a,b,i:integer;

begin a:=3; b:=7; begin for i:=1 to b do a:=a + b; for i:= a downto b ; end; write(i,b); end. Natijani toping.

A)75 B)77 C) 176 D) 175

12. Quyidagi operatordagi takrorlanishlar sonini aniqlang.

For i:=trunc(235/7) downto round(127/8) do M:= talaba;

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

13. Paskalda quyidagi ifoda a=5, b=15, c=2 bo‘lsa

qanday natija beradi? (a+b div c * 4) mod 5 div 3


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