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
10 questions
Solving Inequalities Flashcard

Flashcard
•
9th Grade
10 questions
Absolute Value Inequalities

Flashcard
•
9th Grade
10 questions
Past Simple and Past Progressive

Flashcard
•
8th - 9th Grade
8 questions
Unit #4- Loops and Nested Loops

Flashcard
•
9th - 12th Grade
10 questions
JavaScript While Loop Flashcard

Flashcard
•
11th Grade
9 questions
CSA Semester 2 Final

Flashcard
•
11th - 12th Grade
10 questions
Choose the best option A B C or D to the following sentences.

Flashcard
•
10th Grade
10 questions
Solve Absolute Value Inequalities

Flashcard
•
10th - 11th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade