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
6 questions
Unit 13 Function and decision

Quiz
•
University
10 questions
Quiz Input dan Ouput C++

Quiz
•
University
10 questions
C Basics

Quiz
•
University
10 questions
ECE-C Quiz _3

Quiz
•
University
8 questions
File Processing

Quiz
•
University
12 questions
Functions C

Quiz
•
University
10 questions
CS1010 Lab 02

Quiz
•
University
12 questions
Printf, scanf

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University