C programming syntax quiz

C programming syntax quiz

University

20 Qs

quiz-placeholder

Similar activities

Arithmetic Types Declare Initialize Relation Logical Ops

Arithmetic Types Declare Initialize Relation Logical Ops

9th Grade - University

16 Qs

Python End of Topic Quiz

Python End of Topic Quiz

8th Grade - University

15 Qs

PROGRAMMING IN PYTHON - UNIT II - TEST 1 MCQS

PROGRAMMING IN PYTHON - UNIT II - TEST 1 MCQS

University

15 Qs

Python Basics

Python Basics

University

15 Qs

Python Basics

Python Basics

KG - University

15 Qs

Java Programming

Java Programming

University

20 Qs

CODE ZENITH

CODE ZENITH

University

15 Qs

C-Py QUIZ | ROUND 1

C-Py QUIZ | ROUND 1

University

20 Qs

C programming syntax quiz

C programming syntax quiz

Assessment

Quiz

Computers

University

Easy

Created by

Karen Tan

Used 4+ times

FREE Resource

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

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?