Search Header Logo

C-Quiz-01

Authored by HS Mok

Information Technology (IT)

9th - 12th Grade

Used 1+ times

C-Quiz-01
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

OPEN ENDED QUESTION

3 mins • 1 pt

Explain what is #include <stdio.h> ?

Evaluate responses using AI:

OFF

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is printf for ?

display some message in terminal.

wait for user to reply

exit the program

draw a straight line

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

what's the result of following code:
printf("Hello Students.\nI am from Nanyang\n");

Hello Students. I am from Nanyang

Hello Students.
I am from Nanyang

Hello Students
I am from Nanyang

Hello Students. I am from Medan

4.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Select which statement that is correct using scanf

scanf("%d", number);

scanf("%d", &number);

scanf("%d %d", &number1, &number2);

scanf("%d %d", number1, number2);

5.

OPEN ENDED QUESTION

3 mins • 1 pt

In C, what is the difference between printf() and scanf() functions?

Evaluate responses using AI:

OFF

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct way to read an integer in C?

scanf("%d", num);

scanf("%d", &num);

scanf("%i", num);

scanf(num, "%d");

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the following code if x = 10?

A

B

AB

No output

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?