#include <stdio.h>
main(){
printf("%d ", 1);
goto l1;
printf("%d ", 2);
l1:goto l2;
printf("%d ", 3);
l2:printf("%d ", 4);}
BA340
Quiz
•
Computers
•
3rd Grade
•
Hard
Oyungerel Delger
Used 1+ times
FREE Resource
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
8.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
#include<stdio.h>
int main(){
int age=37;
g: printf("huuhed");
goto end;
s: printf("hun");
goto end;
if(age>=18) goto g;
else goto s;
end:
return 0;}
huuhed
hun
huuhed
hun
0
8 questions
BA340 Lec4
Quiz
•
3rd Grade
10 questions
Programming - Iteration, Basic Programming Constructs & Loop
Quiz
•
2nd - 12th Grade
13 questions
Tutoria N7
Quiz
•
1st - 3rd Grade
11 questions
Caligrafía | CM7
Quiz
•
1st - 10th Grade
10 questions
Programming
Quiz
•
1st - 10th Grade
12 questions
Previous set Capgemini
Quiz
•
1st - 3rd Grade
8 questions
BA340 L8
Quiz
•
3rd Grade
10 questions
Bài tập trắc nghiệm C++
Quiz
•
3rd - 12th Grade
10 questions
Chains by Laurie Halse Anderson Chapters 1-3 Quiz
Quiz
•
6th Grade
20 questions
math review
Quiz
•
4th Grade
15 questions
Character Analysis
Quiz
•
4th Grade
12 questions
Multiplying Fractions
Quiz
•
6th Grade
30 questions
Biology Regents Review #1
Quiz
•
9th Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
50 questions
Biology Regents Review: Structure & Function
Quiz
•
9th - 12th Grade
10 questions
Identifying equations
Quiz
•
KG - University
20 questions
Soil and Erosion Review
Quiz
•
3rd Grade
10 questions
multiplication facts
Quiz
•
3rd Grade
20 questions
Basic Multiplication Facts
Quiz
•
2nd - 3rd Grade
30 questions
Multiplication Facts 1-12
Quiz
•
2nd - 5th Grade
20 questions
Math Review
Quiz
•
3rd Grade
16 questions
Chapter 8 - Getting Along with your Supervisor
Quiz
•
3rd Grade - Professio...
17 questions
Multiplication facts
Quiz
•
3rd Grade