Search Header Logo

C++ Riferimenti

Authored by Andrea Prete

Computers

University

Used 365+ times

C++ Riferimenti
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

int x = 1;

int &y = x;

y++;

x==1 && y==1

x==1 && y==2

x==2 && y==1

x==2 && y==2

Errore di compilazione

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

int &x = 5;

x += 3;

cout << x;

3

5

8

Errore di compilazione

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

double x = 3.5;

int &y = x;

y -= 3;

cout << y;

3.5

0.5

0

Errore di compilazione

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

int x = 4;

cout << &x;

Stampa l'indirizzo di x

Stampa 4

Errore di compilazione

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

int x = 4;

cout << &(2*x);

Stampa 8

Stampa l'indirizzo di x moltiplicato per 2

Errore di compilazione

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

int x = 1;

int &y;

y = x;

x++;

cout << y;

x==1 && y==1

x==2 && y==2

x==2 && y==1

Errore di compilazione

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

int n = 10;

int &r = n;

cout<<"n = "<< &n << ", &r = " << &r << endl;

Stampa gli indirizzi di n e r, che sono identici

Stampa gli indirizzi di n e r, che sono differenti

Errore di compilazione

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?