Search Header Logo

Structura alternativă și operatori

Authored by Adina Boerescu

Computers

6th - 8th Grade

Used 12+ times

Structura alternativă și operatori
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

0 sec • 1 pt

Media Image

Ce se afișează în urma executării următoarelor instrucțiuni?

int a=4,b=5;

if(a==b){ cout << "DA";}

else { cout << "NU";}

DA

NU

4

5

2.

MULTIPLE CHOICE QUESTION

0 sec • 1 pt

Pentru x=10 si y=20, afirmatia x>y este adevarata sau falsa?

adevarat

fals

3.

MULTIPLE CHOICE QUESTION

0 sec • 1 pt

Pentru x=10 si y=20, afirmatia (2*x) >= y este adevarata sau falsa?

adevarat

fals

4.

MULTIPLE CHOICE QUESTION

0 sec • 1 pt

Pentru x=15 si y=15, afirmatia x>=y este adevarata sau falsa?

adevarat

fals

5.

MULTIPLE CHOICE QUESTION

0 sec • 1 pt

Pentru x=15 si y=18, afirmatia x==y este adevarata sau falsa?

adevarat

fals

6.

MULTIPLE CHOICE QUESTION

0 sec • 1 pt

Cum afișăm pe ecran înălțimea unei cladiri, notată cu x?

double x;

cin>>x;

cout<<x;

int x;

7.

MULTIPLE CHOICE QUESTION

0 sec • 1 pt

Fie a și b două numere întregi. Alege codul care afișează pe ecran care dintre cele două numere este mai mare.

if (a >= b)

cout<<a;

else

cout<<b;

if (a < b)

cout<<a;

else

cout<<b;

if (a > b)

cout<<a;

else

cout<<b;

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?