Operatori aritmetici C++

Operatori aritmetici C++

7th Grade

9 Qs

quiz-placeholder

Similar activities

Python - Year 8

Python - Year 8

3rd Grade - University

10 Qs

JavaScript Variables

JavaScript Variables

3rd Grade - University

13 Qs

Kuiz Senang

Kuiz Senang

7th - 9th Grade

10 Qs

Unit 3

Unit 3

1st - 12th Grade

10 Qs

Текстовый процессор (5 класс)

Текстовый процессор (5 класс)

5th - 8th Grade

10 Qs

Power Point klasa V

Power Point klasa V

4th Grade - University

14 Qs

Maths in Python (EduBlocks)

Maths in Python (EduBlocks)

6th - 9th Grade

10 Qs

Kornjačina grafika

Kornjačina grafika

6th - 8th Grade

8 Qs

Operatori aritmetici C++

Operatori aritmetici C++

Assessment

Quiz

Computers

7th Grade

Practice Problem

Easy

Created by

Irina Mandru

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

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

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

Discover more resources for Computers