
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};
7
cout<<v[ v[0] ];
2
for(i=9; i>=0; i-=2)
cout<<v[i]<<" ";
3 5 9 4 0
cout<<v[1];
8 6 1 2 7
for(i=0; i<10; i+=2)
cout<<v[i]<<" ";
11
cout<<v[0]+v[9];
3.
REORDER QUESTION
1 min • 1 pt
Gasiti ordine
int v[10];
int main() {
int n, s=0;
cin >> n;
for(i=0; i<n; i++)
cin >> v[i];
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>
cout << "Test";
#include <cmath>
sort(v, v+n);
#include <iostream>
sqrt(a)
#include <fstream>
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=0; i<10; i++)
if(v[i]%2==0)
cnt++;
3
for(i=0; i<5; i++)
if(v[i]==v[9-i])
cnt++;
5
for(i=1; i<10; i++)
if(v[i]%2==v[i-1]%2)
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
15 questions
Cuestionario PseInt
Quiz
•
6th - 8th Grade
12 questions
7-Info I-sherek Cambridge
Quiz
•
7th Grade
10 questions
Internet
Quiz
•
7th - 10th Grade
10 questions
สอบปลายภาคชั้นม.2
Quiz
•
8th Grade
10 questions
Dasar Microsoft Word (Bagian 1)
Quiz
•
7th Grade
10 questions
Virus Informáticos
Quiz
•
1st - 10th Grade
15 questions
ÔN TẬP HKII-02
Quiz
•
8th Grade
10 questions
16. Výroba zdravotnického materiálu
Quiz
•
6th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
