Search Header Logo

C programming syntax quiz

Authored by Karen Tan

Computers

University

Used 4+ times

C programming syntax quiz
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

5 mins • 10 pts

Type the code snippet to Print "Hello World" if x is greater than y.

Evaluate responses using AI:

OFF

2.

OPEN ENDED QUESTION

5 mins • 10 pts

Type the code snippet to Print "Hello World" if x is equal to y.

Evaluate responses using AI:

OFF

3.

OPEN ENDED QUESTION

5 mins • 10 pts

Type the code snippet to Print "Yes" if x is equal to y, otherwise print "No"

Evaluate responses using AI:

OFF

4.

OPEN ENDED QUESTION

5 mins • 10 pts

Type the code snippet to Print "1" if x is equal to y, print "2" if x is greater than y, otherwise print "3".

Evaluate responses using AI:

OFF

5.

OPEN ENDED QUESTION

5 mins • 10 pts

Type the code snippet to display what day it is using an int day variable and switch statement

Evaluate responses using AI:

OFF

6.

OPEN ENDED QUESTION

5 mins • 10 pts

Type the code snippet to Print i as long as i is less than 6 using the while loop.

Evaluate responses using AI:

OFF

7.

OPEN ENDED QUESTION

5 mins • 10 pts

Type the code snippet to Use the do/while loop to print i as long as i is less than 6.

Evaluate responses using AI:

OFF

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?

Discover more resources for Computers