Қай код дұрыс for циклін көрсетеді?

Программалау сұрақтары

Quiz
•
Others
•
University
•
Hard
Малика Палуанова
FREE Resource
37 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
for (int x = 1; x <= 10; x++ ) { System.out.print(x); }
for (int x =! 0; x < 10; x **) { System.out.print(x); }
for (int x != 10; x > 0; x--) { System.out.print(x); }
Барлығы дұрыс.
while
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Төмендегі кодтың нәтижесі қандай?
1 2 3 4
1 2 3 4 5
1 2 3 4 5 6 7 8 9 10
Қате.
1 2
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Қандай цикл кері санақ жүргізеді?
for (int i = 10; i >= 0; i--) { System.out.print(i); }
for (int i = 0; i < 10; i--) { System.out.print(i); }
for (int i = 10; i > 0; i++) { System.out.print(i); }
Барлығы дұрыс.
while
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Бір өлшемді массивті қалай анықтаймыз?
int[] array = new int[5];
int array = new int[5];
int array = {1, 2, 3};
array[] = int[5];
int arr
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Төмендегі кодтың нәтижесі қандай?
30 санын басып шығарады.
10 санын басып шығарады.
20 санын басып шығарады.
Қате шығарады.
50 санын басып шығарады.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Массивтің ұзындығын қалай аламыз?
arr.length
arr.size()
arr.getLength()
arr.len
arr.l
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Массивтің соңғы элементіне қалай қол жеткіземіз?
arr[arr.length – 1]
arr[length]
arr[last]
arr[arr.length]
arr
Create a free account and access millions of resources
Similar Resources on Quizizz
42 questions
картография

Quiz
•
University
37 questions
Exam 1 Review

Quiz
•
University
40 questions
CC103 - 3

Quiz
•
University
32 questions
Lập trình cơ sở -LTCS- CS 211 Duy Tân

Quiz
•
University
40 questions
CC103 - 2

Quiz
•
University
34 questions
Midterm Exam - L1

Quiz
•
University
33 questions
Педагогикалық Процесс Туралы Сұрақтар

Quiz
•
University
40 questions
CC103-1

Quiz
•
University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade