int x=0;
switch(x) {
case 1: printf( "One" );
case 0: printf( "Zero" );
case 2: printf( "Hello World" );
} //Юу хэвлэх вэ?
BA340 Lec4
Quiz
•
Computers
•
3rd Grade
•
Hard
Oyungerel Delger
Used 2+ times
FREE Resource
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
int x=0;
switch(x) {
case 1: printf( "One" );
case 0: printf( "Zero" );
case 2: printf( "Hello World" );
} //Юу хэвлэх вэ?
Zero
One
Hello World
ZeroHello World
2.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
#include <stdio.h>
void main()
{
int a=10;
switch(a){
case 5+5:
printf("Hello\n");
default:
printf("OK\n");
}
}
Hello
OK
Hello
OK
Error
3.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
#include <stdio.h>
void main(){
int a=2;
switch(a){
printf("Message\n");
default:
printf("Default\n");
case 2: printf("Case-2\n");
case 3: printf("Case-3\n");}
printf("Exit from switch\n");}
Case-2
Message
Message
Case-2
Case-2
Case-3
Exit from switch
4.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
int a=5, b=9, c=1;
if(a<b && b>c);
printf("Hi");
else printf("Hello");
Hi
Hello
Hi
Hello
Код алдаатай тул үр дүн гарахгүй
5.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
int a=51, b=9;
if(a<b || b>2)
printf("Hi");
else printf("Hello");
Hi
Hello
Hi
Hello
Алдаатай тул ажиллахгүй
6.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
int a=1,b=2,c=3,d=4;
int x=a;
if(a>b)
if(b<c) x=b;
else x=c;
printf("%d",x);
1
2
3
алдаатай тул ажиллахгүй
7.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
int a=1;b=2;c=3;d=4;
int x=a;
if(a>b)
if(b<c) x=b;
else x=c;
printf("%d",x);
Алдаатай мөрийг олох.
1
2
4
6
8.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
int x=1, y=0,z=5,t=9999;
if(x>0&&y==0||z>5)
t=8;
else t=3;
printf("%d",t);
9999
8
3
алдаатай тул ажиллахгүй.
10 questions
Программирование C#
Quiz
•
1st - 10th Grade
11 questions
JAVA QUIZ
Quiz
•
1st - 12th Grade
8 questions
BA340 L3
Quiz
•
3rd Grade
10 questions
C# lesson10
Quiz
•
1st - 10th Grade
10 questions
Intro to Python
Quiz
•
KG - University
8 questions
BA340 L5
Quiz
•
3rd Grade
10 questions
แบบทดสอบวิทยาการคำนวณก่อน ปลายภาค
Quiz
•
3rd Grade
13 questions
JavaScript Variables
Quiz
•
3rd Grade - University
20 questions
math review
Quiz
•
4th Grade
20 questions
Math Review - Grade 6
Quiz
•
6th Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
20 questions
Taxes
Quiz
•
9th - 12th Grade
10 questions
Human Body Systems and Functions
Interactive video
•
6th - 8th Grade
19 questions
Math Review
Quiz
•
3rd Grade
45 questions
7th Grade Math EOG Review
Quiz
•
7th Grade