logo

Crowdly

Browser

Add to Chrome

Programiranje II

Looking for Programiranje II test answers and solutions? Browse our comprehensive collection of verified answers for Programiranje II at ucilnica-fe.uni-lj.si.

Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!

Podan je naslednji del kode:

unsigned int x = 10;

while (x >= 0) {

x--;

}

Kakšna bo vrednost spremenljivke x, ko se koda izvede?

View this question
Podan je naslednji del kode:

x = y = z = 0;

if (x > 0)

if (y > 0)

z = x / y;

else

z++;

Kakšna bo vrednost spremenljivk x, y in z, ko se koda izvede?

0%
0%
0%
View this question
Podan je naslednji izraz (vrednost spremenljivke x je 0.2):

0 < x < 0.5

Kakšna je njegova vrednost?

0%
0%
0%
0%
View this question
Podan je naslednji stavek:

printf("%04d", scanf("%d%d", &x, &y));

Ko se je stavek zagnal, smo vtipkali dve celoštevilski vrednosti in pritisnili tipko <Enter>:

12  7  <Enter>

Kaj se bo izpisalo na zaslonu?

View this question

Kateri od spodnjih stavkov je enakovreden naslednjemu stavku switch?

switch (x - 1) {

case 0: x *= 2; break;

case 1: x *= 3; break;

default: x *= 4;

}

View this question

Kakšna bo vrednost spremenljivke x, ko se izvede naslednja koda?

int x, j;

for (x = 0, j = 1; x < 10; x++) {

if (x % 2) j++;

if (x % 3) continue;

if (x % j) break;

}

View this question

Kakšno vrednost bo imela spremenljivka x, ko se izvede naslednja vrstica kode?

x = (x = 10, x++, x + 1);

0%
0%
0%
0%
View this question

Kaj bo na standardni izhod izpisal naslednji kos programa?

int x = 10;

for (int x = 0; x < 5; x++);

printf("%d", x);

0%
0%
0%
0%
View this question

Kakšna bo vrednost spremenljivke x, ko se izvede naslednja koda?

int x = 3;

do x++; while (meja < 10);

View this question

Kakšno vrednost bo imela spremenljivka x, ko se izvede naslednja koda?

int x = 10;

if (x > 5 ? 0 : 1) x *= 2;

else x /= 2;

0%
0%
0%
0%
View this question

Want instant access to all verified answers on ucilnica-fe.uni-lj.si?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome