Unit 3 C Pro P1

Quiz
•
Computers
•
University
•
Medium
Norhamimi Hamdan
Used 4+ times
FREE Resource
8 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
10 sec • 1 pt
What is the example of relation operator
<
=
!=
>=
2.
MULTIPLE SELECT QUESTION
10 sec • 1 pt
What is the example of boolean operator
&
x
/
~
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
in Selection Structure, the right way to write the statement is
if (condition)
{action statement}
if (action statement)
{condition}
if (condition) ;
{action statement}
if (condition)
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the output for the following statement, when score value is 99?
if (score == 100)
{
printf(“Congratulations!”);
}
Congratulations!
tahniah
no answer
ok
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
the right way to write the statement for this flow chart is
if (condition){statement2}
else {statement1}
if (action statement1)
{condition}
if (condition){statement1}
else {statement2}
if (condition)
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the output for the following statement, when score value is 40?
if(score>=50)
{printf(“you pass”);}
else{
printf(“you fail”);
}
you pass
you fail
no answer
ok
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the output for the following statement, when number1 is 9 and number2 is 40?
#include<stdio.h>
int main(){
int number1,number2;
printf("Type in two number!\n");
scanf("%d %d",&number1,&number2);
if(number1>=10 number2>=10)
{ printf("Both Number is greater than 10\n");
}
else
printf("One or both of you number is less than 10!\n");
return 0;
}
Both Number is greater than 10
Both Number is greater than 100
One or both of you number is less than 10
One or both of you number is less than 100
8.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the output for the following statement, when user type number1=2 and number2=20?
Both number is greater than 10
one or both of your number is less than 10
both of your number is less than 10
both of your number is equal to 10
Similar Resources on Wayground
11 questions
11 câu trắc nghiệm PHP

Quiz
•
University
11 questions
coding_quiz3

Quiz
•
University
10 questions
C Program Array and strings

Quiz
•
University
10 questions
Arrays in C (II yr 02.07.2020)

Quiz
•
University
10 questions
pointers and structures

Quiz
•
University
10 questions
C Viva

Quiz
•
University
10 questions
if/else statements quiz

Quiz
•
9th Grade - University
6 questions
Unit 12 : error no

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University