Unit 3 C Pro P1

Unit 3 C Pro P1

University

8 Qs

quiz-placeholder

Similar activities

Topic 3-1:  Numerical Computation & Expression

Topic 3-1: Numerical Computation & Expression

University

10 Qs

SLG IPC Week 7

SLG IPC Week 7

University

13 Qs

unidad4

unidad4

University

10 Qs

Strategi Algoritma

Strategi Algoritma

11th Grade - University

9 Qs

ComPro-01-Intro to Programming part 2

ComPro-01-Intro to Programming part 2

University

9 Qs

LOOPS IN C -PROGRAMMING

LOOPS IN C -PROGRAMMING

University

5 Qs

Quiz 1 - Intro to C

Quiz 1 - Intro to C

University

10 Qs

Basic C Knowledge Exercise

Basic C Knowledge Exercise

University

10 Qs

Unit 3 C Pro P1

Unit 3 C Pro P1

Assessment

Quiz

Computers

University

Medium

Created by

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

Media Image

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

Media Image

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