#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
10 questions
Թեմատիկ աշխատանք N 2
Quiz
•
1st - 10th Grade
13 questions
c++ last
Quiz
•
1st Grade - University
12 questions
Previous set Capgemini
Quiz
•
1st - 3rd Grade
10 questions
Small Basic 2
Quiz
•
KG - 8th Grade
8 questions
BA340 L8
Quiz
•
3rd Grade
10 questions
Bài tập trắc nghiệm C++
Quiz
•
3rd - 12th Grade
15 questions
Multiplication Facts
Quiz
•
4th Grade
20 questions
Math Review - Grade 6
Quiz
•
6th Grade
20 questions
math review
Quiz
•
4th Grade
5 questions
capitalization in sentences
Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance
Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions
Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines
Quiz
•
Professional Development
12 questions
Dividing Fractions
Quiz
•
6th Grade
5 questions
Basement Basketball
Quiz
•
3rd Grade
20 questions
Parts of Speech
Quiz
•
3rd - 6th Grade
20 questions
Fun Trivia
Quiz
•
2nd - 4th Grade
20 questions
Context Clues
Quiz
•
3rd Grade
20 questions
Kids Movie Trivia
Quiz
•
3rd Grade
13 questions
Multiplication Facts Practice
Quiz
•
3rd Grade
20 questions
Silent e
Quiz
•
KG - 3rd Grade
6 questions
Alexander Graham Bell
Quiz
•
3rd Grade