Search Header Logo

BA340 L8

Authored by Oyungerel Delger

Computers

3rd Grade

Used 2+ times

BA340 L8
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

Өмнөх нөхцөлт давталтын зөв форматыг сонго.

while(condition);

{

//code

}

{

//code

}while(condition);

while(condition)

{

//code

}

{

//code

}while(condition)

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Дараах нөхцөлт давталтын зөв форматыг сонгоорой.

do-while(condition);

{

//code

}

do{

//code

}while(condition);

do-while(condition)

{

//code

}

do{

//code

}while(condition)

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Хэрвээ a=10, b=5, c=10 бол a болон c-г ол?

If ((a > b) && (a <= c))  

         a = a + 1;  

else  

         c = c+1;  

a=11,c=11

a=10,c=11

a=11,c=10

a=10,c=10

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

#include <stdio.h>

int main() {

int i = 0;

while (i < 5) {

printf("%d\n", i);

i++; }

do { printf("%d ", i);

i++;}

while (i < 5);

return 0;}

0 1 2 3 4 5

0 1 2 3 4 5

0 1 2 3 4 5

0 1 2 3 4 5

6 7 8 9 10 11

0 1 2 3 4

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

#include <stdio.h>

int main() {

int i = 0;

while (i < 0) {

printf("%d ", i);

i++;}

printf("%d ", i);

return 0;}

0 0

0

1

0 1

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

#include <stdio.h>

int main() {

int i = 3;

while (i < 0) {

printf("%d", i);

i--;}

printf("%d", i);

return 0;}

3 2 1 0

3 2 1 1

3

0

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

#include <stdio.h>

int main() {

int i=1, j=1;

while (i <= 4 || j <= 3) {

printf("%d %d\n",i, j);

i++; j++; }

return 0; }

1 1

2 2

3 3

1 1

2 2

3 3

4 4

1 1

2 2

3 3

4

Програм алдаатай

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

Already have an account?