
BA340
Authored by Oyungerel Delger
Computers
3rd Grade
Used 1+ 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
30 sec • 5 pts
#include <stdio.h>
main(){
printf("%d ", 1);
goto l1;
printf("%d ", 2);
l1:goto l2;
printf("%d ", 3);
l2:printf("%d ", 4);}
1 2
1 3
1 4
Алдаатай тул ажиллахгүй.
2.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
a хувьсагчийг 3-аар нэмэгдүүлж байгаа дараах үйлдлүүдээс аль нь буруу бичигдсэн бэ?
a++;
a++;
a++;
a=+3;
a=a+3;
a+++
3.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
C програмчлалын хэлэнд хэдэн төрлийн давталтын оператор байдаг вэ?
1
2
3
4
4.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
#include <stdio.h>
int main(){
int a = 1, b = 1, c;
c = a++ + b;
printf("%d %d", a, b);}
1 1
1 2
2 1
2 2
5.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
#include <stdio.h>
int main () {
int a = 10;
LOOP: if( a == 15) {
a = a + 1;
goto LOOP;}
printf("%d", a);
a++;
return 0;}
12
11
10
Алдаатай
6.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
#include<stdio.h>
int main() {
int n=4, i=1;
start:
printf("%d\t",i);
i++;
if(i<n) goto start;
return 0;}
1
1 2
1 2 3
1 2 3 4
7.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
#include<stdio.h>
int main() {
int n=3, sum=0;
start:
if(n<0) goto end;
sum = sum + n;
n--;
goto start;
end:
printf("Sum = %d",sum);
return 0; }
0
3
4
6
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?