Instructiuni Repetitive C++

Flashcard
•
Computers
•
10th Grade
•
Hard
Wayground Content
FREE Resource
Student preview

7 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Ce este o instructiune for in C++?
Back
O instructiune for în C++ este o structură de control care permite execuția repetată a unui bloc de cod pentru un anumit număr de ori.
2.
FLASHCARD QUESTION
Front
Cum se pot afisa numerele naturale pare din intervalul [2, 100] in C++? Options: for(int i = 2; i < 100; i++) { cout<<i<<" "; } , for(int i = 1; i <= 100; i=i+2) { cout<<i<<" "; } , for(int i = 2; i <= 100; i=i+2) { cout<<i<<" "; } , for(int i = 2; i <= 100; i++) { cout<<i<<" "; }
Back
for(int i = 2; i <= 100; i=i+2) { cout<<i<<" "; }
3.
FLASHCARD QUESTION
Front
Ce este un do-while in C++?
Back
Un do-while in C++ este similar cu un while, cu diferenta ca instructiunile din interiorul sau sunt executate macar o data.
4.
FLASHCARD QUESTION
Front
Cum functioneaza un do-while in C++?
Back
Un do-while in C++ se executa cel putin o data, deoarece conditia este verificata dupa executarea blocului de cod.
5.
FLASHCARD QUESTION
Front
Care sunt avantajele folosirii unui do-while in comparatie cu un while?
Back
Un do-while garantează că instrucțiunile din interiorul buclei sunt executate cel puțin o dată.
6.
FLASHCARD QUESTION
Front
Poti folosi un do-while loop pentru a itera peste un array in C++?
Back
Da
7.
FLASHCARD QUESTION
Front
Care este diferenta de functionare intre un for loop si un do-while loop in C++?
Back
For loop checks the condition before each iteration, while do-while loop checks the condition after each iteration.
Similar Resources on Wayground
12 questions
C programming review Flashcard

Flashcard
•
9th Grade
8 questions
Java CH4 - Control Statements EXIT

Flashcard
•
10th - 12th Grade
11 questions
Deklaracja dwuwymiarowej tablicy C++

Flashcard
•
10th Grade
6 questions
ESP_PythonPro_M2L4

Flashcard
•
KG
5 questions
User Inputs JavaScript

Flashcard
•
10th Grade
5 questions
Arrays

Flashcard
•
11th Grade
5 questions
Arrays

Flashcard
•
11th Grade
5 questions
Enhanced For Loops

Flashcard
•
10th - 12th Grade
Popular Resources on Wayground
10 questions
SR&R 2025-2026 Practice Quiz

Quiz
•
6th - 8th Grade
30 questions
Review of Grade Level Rules WJH

Quiz
•
6th - 8th Grade
6 questions
PRIDE in the Hallways and Bathrooms

Lesson
•
12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
15 questions
Subtracting Integers

Quiz
•
7th Grade