
Programare cu C++ avansat 3

Quiz
•
Computers
•
6th - 8th Grade
•
Easy
Ali Cabas
Used 6+ times
FREE Resource
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};
8 6 1 2 7
cout<<v[0]+v[9];
7
for(i=0; i<10; i+=2)
cout<<v[i]<<" ";
2
cout<<v[1];
11
cout<<v[ v[0] ];
3 5 9 4 0
for(i=9; i>=0; i-=2)
cout<<v[i]<<" ";
3.
REORDER QUESTION
1 min • 1 pt
Gasiti ordine
int v[10];
int main() {
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; }
int n, s=0;
cin >> n;
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?
sort(v, v+n);
#include <cmath>
cout << "Test";
#include <iostream>
ifstream fin("file.in");
#include <fstream>
sqrt(a)
#include <algorithm>
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?
5
for(i=0; i<5; i++)
if(v[i]==v[9-i])
cnt++;
4
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++;
3
for(i=1; i<10; i++)
if(v[i]%2==v[i-1]%2)
cnt++;
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
HTML Image Tags

Quiz
•
6th - 8th Grade
10 questions
HTML Basics

Quiz
•
7th - 10th Grade
10 questions
Programare cu C++ medie 9

Quiz
•
6th - 8th Grade
15 questions
Matematičke formule i funkcije u Excelu

Quiz
•
6th - 8th Grade
15 questions
Linux-2 Quiz 2 -- LAMP

Quiz
•
1st - 12th Grade
10 questions
HTML Attributes 1

Quiz
•
8th Grade
10 questions
Class 7 HTML

Quiz
•
5th - 7th Grade
10 questions
hTML

Quiz
•
8th 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
20 questions
typing

Quiz
•
6th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
20 questions
Input, Output, Processing or Storage

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

Interactive video
•
7th - 12th Grade