Programare cu C++ avansat 3

Programare cu C++ avansat 3

6th - 8th Grade

10 Qs

quiz-placeholder

Similar activities

Coding helps to Understand

Coding helps to Understand

6th - 10th Grade

10 Qs

More on powerpoint

More on powerpoint

6th Grade

11 Qs

C# lesson10

C# lesson10

1st - 10th Grade

10 Qs

TMK Tahun 6 - Pengaturcaraan -Unit 1

TMK Tahun 6 - Pengaturcaraan -Unit 1

5th - 6th Grade

11 Qs

digital graphics

digital graphics

6th - 8th Grade

15 Qs

Cyber Security Homework 1

Cyber Security Homework 1

7th - 9th Grade

15 Qs

G8_Ch2_Windows Movie Maker

G8_Ch2_Windows Movie Maker

8th Grade

15 Qs

Kiểm tra giữa kỳ 1 Tin 8

Kiểm tra giữa kỳ 1 Tin 8

8th Grade

15 Qs

Programare cu C++ avansat 3

Programare cu C++ avansat 3

Assessment

Quiz

Computers

6th - 8th Grade

Practice Problem

Easy

Created by

Ali Cabas

Used 7+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?