Tutorial 1 Chapter 4 C Programming

Tutorial 1 Chapter 4 C Programming

Professional Development

15 Qs

quiz-placeholder

Similar activities

HACKATHON HUSTLE(ROUND 2)

HACKATHON HUSTLE(ROUND 2)

Professional Development

20 Qs

CPR Quiz_chapter 5_structure

CPR Quiz_chapter 5_structure

Professional Development

10 Qs

PSPD_CCA1

PSPD_CCA1

Professional Development

20 Qs

CPR_Quiz_Chapter4_function

CPR_Quiz_Chapter4_function

Professional Development

15 Qs

C programming

C programming

Professional Development

10 Qs

C Programming

C Programming

Professional Development

20 Qs

Day3

Day3

Professional Development

15 Qs

CPR _Chapter2 _Onlinequiz

CPR _Chapter2 _Onlinequiz

Professional Development

15 Qs

Tutorial 1 Chapter 4 C Programming

Tutorial 1 Chapter 4 C Programming

Assessment

Quiz

Professional Development

Professional Development

Easy

Created by

Anna Sukri

Used 3+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Selection statements are used to make decisions based on a condition.

TRUE

FALSE

2.

FILL IN THE BLANK QUESTION

1 min • 1 pt

if..else selection structure specifies an action to be performed both when the condition is true and when it is _____

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

____ structure is a single-entry/single-exit structure

if

if...else

switch

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

if..else selecion structure specifies an action to be performed both when the condition is true

TRUE

FALSE

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the output of the following?

#include <stdio.h>

int main()

{

int m=40,n=20;

if (m>n) {

printf("m is greater than n");}

else if(m<n) {

printf("m is less than n"); }

else {

printf("m is equal to n");}

}

Compilation error

m is greater than n

m is less than n

m is equal to n

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you start writing an if statement in C?

if (x > y)  

if x > y()

if x > y then

if x > y

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you start writing a while loop in C?

while (x < y) 

while x < y then

if x > y while

while x < y

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?