Search Header Logo

PA2 - 2 - OOP a metody

Authored by Jan Matoušek

Computers

University

Used 2+ times

PA2 - 2 - OOP a metody
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

Zhodnoťte program:

Nepůjde přeložit.

Nepůjde slinkovat.

Vypíše 200

Spadne

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Zhodnoťte program:

Nepůjde přeložit.

Nepůjde slinkovat.

Vypíše 200

Spadne

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

Zhodnoťte program:

Nepůjde přeložit.

Nepůjde slinkovat.

Vypíše 200

Spadne

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Zhodnoťte program:

Nepůjde přeložit.

Nepůjde slinkovat.

Vypíše 200

Spadne

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Které tělo metody setWidth NEZMĚNÍ šířku obdélníka?

width = width;

this->width = width;

Rectangle::width = width;

Všechny metody úspěšně změní šířku obdélníka.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Jaký typ by měly vracet metody setWidth a setHeight?

void

Rectangle

Rectangle &

const Rectangle &

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Jak vrátíme referenci na sebe?

return;

return this;

return &this;

return *this;

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?