Operatori aritmetici C++

Operatori aritmetici C++

7th Grade

9 Qs

quiz-placeholder

Similar activities

Java  Quiz (Who knows java best?)

Java Quiz (Who knows java best?)

7th - 10th Grade

10 Qs

Kuis Percabangan

Kuis Percabangan

1st - 10th Grade

12 Qs

С++ цикл for

С++ цикл for

6th - 9th Grade

10 Qs

Structura alternativă și operatori

Structura alternativă și operatori

6th - 8th Grade

8 Qs

C++

C++

7th Grade

12 Qs

C++ Pointer

C++ Pointer

6th - 8th Grade

10 Qs

Массивы в C++: ввод/вывод

Массивы в C++: ввод/вывод

6th - 8th Grade

11 Qs

основы C++

основы C++

6th Grade - University

14 Qs

Operatori aritmetici C++

Operatori aritmetici C++

Assessment

Quiz

Computers

7th Grade

Easy

Created by

Irina Mandru

Used 2+ times

FREE Resource

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

How do you declare a variable in C++?

data_type variable_name;

data_type = variable_name;

declare variable_name as data_type;

variable_name = data_type;

2.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Care este rolul instrucțiunii 'cin' în C++?

să efectueze calcule aritmetice

să citească o valoare pentru o variabilă

să afișeze valoarea unei variabile în consolă

să declare o variabilă

3.

OPEN ENDED QUESTION

3 mins • 1 pt

Scrieți instrucțiunea care afișează în consolă valoarea variabilei x

Evaluate responses using AI:

OFF

4.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Ce va afișa următorul cod?

int x = 5;

int y = 3;

int z = x + 2 * y;

cout << z;

5

11

textul 'z'

15

5.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Ce va afișa următorul cod, dacă valoarea introdusă este 3?

int x = 10;

int y , z ;

cin >> y;

z = x / y;

cout << z;

0

10

3

1

6.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Ce va afișa următorul program cod dacă valorile introduse ar fi, pe rând, 7 și 2 ?

int x , y, z;

cin >> x >> y;

z = x % y;

cout << z;

3

4

1

2

7.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Ce va afișa următorul cod?

int x = 9;

int y = 2;

int z = sqrt ( x ) * y;

cout << z;

8

10

6

2

8.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Ce va afișa următorul cod dacă se citesc, pe rând, valorile 8 și 3?

int x, y;

cin >> y >> x;

int z = x - y;

cout << z;

5

8

-5

3

9.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

What is the output of the following code? int x = 2; int y = 3; int z = x + y * x; cout << z;

5

6

7

8