
Programare cu C++ avansat 3
Quiz
•
Computers
•
6th - 8th Grade
•
Practice Problem
•
Easy
Ali Cabas
Used 7+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Cum declaram un vector cu 10 elemente?
int[10] v;
int v={0,1,2,3,4,5,6,7,8,9};
int v[];
int v[10];
2.
MATCH QUESTION
1 min • 1 pt
Pentru sirul respectiv care potriveste?
int v[10]={3, 7, 5, 2, 9, 1, 4, 6, 0, 8};
3 5 9 4 0
for(i=9; i>=0; i-=2)
cout<<v[i]<<" ";
8 6 1 2 7
cout<<v[0]+v[9];
2
for(i=0; i<10; i+=2)
cout<<v[i]<<" ";
7
cout<<v[ v[0] ];
11
cout<<v[1];
3.
REORDER QUESTION
1 min • 1 pt
Gasiti ordine
int v[10];
int main() {
for(i=0; i<n; i++)
cin >> v[i];
cin >> n;
int n, s=0;
for(i=0; i<n; i++) {
if(v[i]>v[n-1])
s+=v[i]; }
cout << s; }
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
int v[10]={0,1,2,3,2,5,1,6,3,8};
Care sorteaza toate elementele din sirul v in ordine crescatoare
sort(v);
sort(v+10);
sort(v, v+10);
sort(v, v+9);
5.
MATCH QUESTION
45 sec • 1 pt
Care potriveste?
ifstream fin("file.in");
#include <algorithm>
sort(v, v+n);
#include <iostream>
cout << "Test";
#include <fstream>
sqrt(a)
#include <cmath>
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
care se verifica daca sirul v[n] este un sir palindrom?
int cnt=0, i;
for(i=0; i<n; i++) {
if(v[i]==v[i+1])
cnt++; }
if(cnt==n)
cout << "Da";
int cnt=0, i;
for(i=0; i<n; i++) {
if(v[i]==v[n-i-1])
cnt++; }
if(cnt==n)
cout << "Da";
int cnt=0, i;
for(i=0; i<n/2; i++) {
if(v[i]!=v[i+1])
cnt++; }
if(cnt==0)
cout << "Da";
int cnt=0, i;
for(i=0; i<n/2; i++) {
if(v[i]!=v[n-i-1])
cnt++; }
if(cnt==0)
cout << "Da";
7.
MATCH QUESTION
1 min • 1 pt
int v[10]={60, 23, 102, 25, 33, 47, 204, 102, 20, 17};
Care potriveste?
4
for(i=1; i<10; i++)
if(v[i]%2==v[i-1]%2)
cnt++;
5
for(i=0; i<5; i++)
if(v[i]==v[9-i])
cnt++;
3
for(i=0; i<10; i++)
if(v[i]%2==0)
cnt++;
1
for(i=1; i<10; i++)
if(v[i]>v[0])
cnt++;
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
Sprawdź się
Quiz
•
4th - 12th Grade
15 questions
Arduino
Quiz
•
7th - 9th Grade
13 questions
Lekcja14 7-8
Quiz
•
7th - 8th Grade
10 questions
ICT 5 EPP
Quiz
•
5th - 6th Grade
12 questions
Ինֆորմատիկա
Quiz
•
7th Grade
14 questions
EVALUACIÓN 6 GRADO
Quiz
•
6th Grade
13 questions
Powtórka z arkusza
Quiz
•
1st - 6th Grade
10 questions
sistem operasi
Quiz
•
7th - 12th Grade
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
20 questions
Context Clues
Quiz
•
6th Grade
10 questions
Exploring Valentine's Day with Charlie Brown
Interactive video
•
6th - 10th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
10 questions
History and Traditions of Valentine's Day
Interactive video
•
3rd - 6th Grade
20 questions
Valentine’s Day and Disney Trivia Worksheet
Quiz
•
6th Grade
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
20 questions
Writing Algebraic Expressions
Quiz
•
6th Grade
20 questions
Ratios/Rates and Unit Rates
Quiz
•
6th Grade
