
PA2 - 2 - OOP a metody
Authored by Jan Matoušek
Computers
University
Used 2+ times

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
Zhodnoťte program:
Nepůjde přeložit.
Nepůjde slinkovat.
Vypíše 200
Spadne
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Zhodnoťte program:
Nepůjde přeložit.
Nepůjde slinkovat.
Vypíše 200
Spadne
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Zhodnoťte program:
Nepůjde přeložit.
Nepůjde slinkovat.
Vypíše 200
Spadne
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Zhodnoťte program:
Nepůjde přeložit.
Nepůjde slinkovat.
Vypíše 200
Spadne
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
Jaký typ by měly vracet metody setWidth a setHeight?
void
Rectangle
Rectangle &
const Rectangle &
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?