C Programming Basics for Grade 1

C Programming Basics for Grade 1

1st Grade

15 Qs

quiz-placeholder

Similar activities

Year 1  Finals reviewer Sem 1 2024

Year 1 Finals reviewer Sem 1 2024

1st Grade

20 Qs

G1_ W9_ Special keys (cont.)

G1_ W9_ Special keys (cont.)

1st Grade

18 Qs

app lab

app lab

1st Grade

20 Qs

Secure Passwords

Secure Passwords

KG - 12th Grade

17 Qs

Photoshop Tools - Year 9

Photoshop Tools - Year 9

1st - 12th Grade

17 Qs

Parts of a computer

Parts of a computer

1st Grade

15 Qs

Microsoft Word 2013Review

Microsoft Word 2013Review

KG - University

20 Qs

Python - Variables and Input

Python - Variables and Input

1st - 10th Grade

16 Qs

C Programming Basics for Grade 1

C Programming Basics for Grade 1

Assessment

Quiz

Computers

1st Grade

Easy

Created by

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

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?