
Duomenų struktūrų naudojimas
Authored by Elina Petrulienė
Information Technology (IT)
12th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Pasirinkite, kuri eilutė teisingai deklaruoja realiųjų skaičių masyvą C++ programavimo kalboje:
string A[i];
double A[100];
double [5];
int A[100];
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Ką programa atspausdins?
#include <iostream>
using namespace std;
int main()
{
int masyvas[5];
for(int i = 0; i < 5; i++) {
masyvas[i] = i + 1;
}
for(int i = 0; i < 5; i++) {
cout << masyvas[i] << " ";
}
}
1 2 3 4 5
5
0 1 2 3 4
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Ką programa atspausdins?
#include <iostream>
using namespace std;
int main ()
{
string vardas[5] = {"Austėja", "Arnė", "Augustas", "Augustė", "Adomas"};
string klase[5] = {"2a", "2b", "2c", "2a", "2b"};
for (int i=0; i<5; i++)
{
if (vardas[i] == "Arnė")
{
cout << klase[i] << " ";
}
}
}
2a
2b
2c
2a 2b 2c
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Ką programa spausdins, jei įvesime Labas
#include <iostream>
using namespace std;
int main()
{
string zodis;
int k = 0;
cin >> zodis;
for (int i=0; i<zodis.size(); i++)
{
if (zodis[i] >= 'a' && zodis[i] <= 'z') k++;
}
cout << k;
}
Labas
5
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Ką programa spausdins, jei įvesime
Ką programa spausdins, jei įvesime
6
4 6 8 10 12 14
#include <iostream>
using namespace std;
int funkcija(int n, int B[]);
int main()
{
int n;
int B[50];
cin >> n;
for (int i=0; i<n; i++)
{
cin >> B[i];
}
cout << funkcija(n, B);
}
int funkcija(int n, int B[])
{
int s=10, k=0;
for (int i=0; i<n; i++)
{
if (s < B[i]) k = k + B[i];
}
return k;
}
26
6
4 6 8 10 12 14
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Arrays in CQuiz
Quiz
•
1st Grade - University
7 questions
B13_Khai niem vai tro CSS
Quiz
•
12th Grade - University
5 questions
ЕГЭ задание 5
Quiz
•
12th Grade - University
5 questions
E- learning
Quiz
•
1st Grade - University
10 questions
Trắc nghiệm 12 bài 7
Quiz
•
12th Grade
10 questions
Repaso DDApp 25
Quiz
•
12th Grade
10 questions
.NET Written Work 3
Quiz
•
12th Grade
10 questions
Posttest Aplikasi Pengolah Kata
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
8 questions
Spartan Way - Classroom Responsible
Quiz
•
9th - 12th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
14 questions
Boundaries & Healthy Relationships
Lesson
•
6th - 8th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
3 questions
Integrity and Your Health
Lesson
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
9 questions
FOREST Perception
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
Discover more resources for Information Technology (IT)
8 questions
Spartan Way - Classroom Responsible
Quiz
•
9th - 12th Grade
22 questions
El Imperfecto
Quiz
•
9th - 12th Grade
25 questions
Logos
Quiz
•
12th Grade
20 questions
Grammar
Quiz
•
9th - 12th Grade
18 questions
Mendelian Genetics
Quiz
•
10th - 12th Grade
22 questions
Regular Preterite -AR-ER-IR-
Quiz
•
12th Grade
20 questions
verbos reflexivos en español
Quiz
•
9th - 12th Grade
14 questions
Making Inferences From Samples
Quiz
•
7th - 12th Grade