Looking for Objektinis programavimas C++ (BIO+INFO, egzaminas) test answers and solutions? Browse our comprehensive collection of verified answers for Objektinis programavimas C++ (BIO+INFO, egzaminas) at emokymai.vu.lt.
Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!
Duotas klasės apibrėžimas:
class X { };
Kiek metodų turi klasė?
{ Object o0, o1, o2(o1), &o3=o1; }
Kiek klasės Object egzempliorių bando kurti aukščiau pateiktas kodo blokas? Įveskite vieną skaitinę reikšmę (neneigiamas sveikas skaičius)
Duotas kodo fragmentas:
struct A { };struct B : virtual public A { A a; };struct C : virtual public A, public B { B b, c; };
Kiek A tipo subobjektų sukuriama, kuriant C klasės objektą?
{ Object *obj[4], o1, o2=o1; }
Kiek klasės Object egzempliorių bando kurti aukščiau pateiktas kodo blokas? Įveskite vieną skaitinę reikšmę (neneigiamas sveikas skaičius)
{ Object o0[3], o1, *o2, *o3=&o1; }
Kiek klasės Object egzempliorių bando kurti aukščiau pateiktas kodo blokas? Įveskite vieną skaitinę reikšmę (neneigiamas sveikas skaičius)
Let myNumbers be a three-dimensional array containing the values - {{{1, 2}, {3, 4}}, {{5, 6}, {7, 8}}}
Using the name myNumbers, write an expression to access (read or modify) the element with the value 6.
Important: you do not need an expression to return a character in any array, just the expression to return the particular value in this particular array.
while(condition == true) a = a + 1;
The above-mentioned loop increases the value of the variable a by 7. How many times it checks whether the condition is true?
Please provide a number as your answer.
Pretend you are a machine executing the code provided below, in the exact order that a machine would execute it. Assume the variables have the following values before starting: x = 1, y = 3, z = 5. Track the use of the variable named x. Every time the variable is used as a left value (i.e. changed in memory), note (eg. write it on paper) the new value. Every time the variable is used as a right value (i.e. read from memory), note the (old) value. To provide an answer construct a string containing only digits and no spaces or other symbols, from the values you have written down, in that exact order.
while (x < y) { x = x + 1; y = --z; }
for( ; condition; ++i) { f(); }
Assume the above-mentioned loop is executed exactly 4 times, i.e. it calls the function 4 times and successfully finishes after condition evaluates to false. How many times does the statement ++i get executed?
Please provide a number as your answer.
Let str be a string of length at least 4. Write an expression that returns a substring containing a string with only 4 last characters of str.