
C Programming Basics for Grade 1

Quiz
•
Computers
•
1st Grade
•
Easy
Jeyam Jacqueline S
Used 1+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a data type in C?
A data type in C is a classification that specifies which type of value a variable can hold.
A data type in C is a color used for highlighting code
A data type in C is a musical instrument
A data type in C is a type of computer mouse
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are variables used for in C?
Variables in C are used to play music
Variables in C are used to make coffee
Variables in C are used to store and manipulate data within a program.
Variables in C are used to predict the weather
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the syntax for an if-else statement in C?
if (condition) { // code to be executed if the condition is true } else { // code to be executed if the condition is false }
if (condition) { // code to be executed if the condition is true } else { // code to be executed if the condition is false }
if (condition) { // code to be executed if the condition is true } else { // code to be executed if the condition is false }
if (condition) { // code to be executed if the condition is true } else { // code to be executed if the condition is false }
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you declare an integer variable in C?
int variableName = 0;
int variableName;
variableName = int;
integer variableName;
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of using comments in C?
To make the code harder to read
The purpose of using comments in C is to provide additional information and explanations within the code.
To slow down the code execution
To confuse other programmers
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Explain the concept of a loop in C.
A loop in C is a dance move
A loop in C is a programming construct that allows a set of instructions to be executed repeatedly based on a condition.
A loop in C is a type of knot
A loop in C is a type of fruit
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the difference between '==' and '=' in C?
'==' is used for subtraction, and '=' is used for addition.
'==' is the equality operator, and '=' is the assignment operator.
'==' is used for logical operations, and '=' is used for bitwise operations.
'==' is used for assignment, and '=' is used for comparison.
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Quiz Python 1

Quiz
•
1st - 3rd Grade
19 questions
Coding ScratchJR Loop1-2A เทอม2

Quiz
•
1st Grade
14 questions
Python Functions and Flowcharts

Quiz
•
1st - 3rd Grade
20 questions
empowerment quiz 5 3rd q

Quiz
•
1st - 5th Grade
15 questions
SNMP

Quiz
•
1st - 5th Grade
10 questions
47-56 NETWORK+

Quiz
•
1st Grade
15 questions
Microsoft Word Skills Assessment

Quiz
•
1st - 5th Grade
15 questions
IEEE Day

Quiz
•
KG - 5th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
18 questions
Hispanic Heritage Month

Quiz
•
KG - 12th Grade
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
addition

Quiz
•
1st - 3rd Grade
20 questions
Subject and predicate in sentences

Quiz
•
1st - 3rd Grade
20 questions
Addition and Subtraction facts

Quiz
•
1st - 3rd Grade
20 questions
Place Value

Quiz
•
KG - 3rd Grade
10 questions
Exploring Properties of Matter

Interactive video
•
1st - 5th Grade
10 questions
Odd and even numbers

Quiz
•
1st - 2nd Grade