C Programming Basics

C Programming Basics

20 Qs

quiz-placeholder

Similar activities

19IT502 - ES - Quiz 1

19IT502 - ES - Quiz 1

University

20 Qs

Programming with Karel

Programming with Karel

3rd - 8th Grade

22 Qs

8th grade CS exam

8th grade CS exam

7th - 9th Grade

20 Qs

LO11_Lesson 3

LO11_Lesson 3

9th Grade

15 Qs

DEC 24 inspect and test quiz

DEC 24 inspect and test quiz

2nd Grade

19 Qs

Karel in Python Quiz Practice

Karel in Python Quiz Practice

12th Grade

24 Qs

Arduino BOE Bot MS

Arduino BOE Bot MS

9th - 12th Grade

25 Qs

Unit 1, Week 1 Vocabulary Words

Unit 1, Week 1 Vocabulary Words

8th Grade

16 Qs

C Programming Basics

C Programming Basics

Assessment

Quiz

Other

Medium

Created by

Deepshikha Saxena

Used 128+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a variable in C?

A variable in C is a function that returns a value

A variable in C is a reserved keyword used for loops

A variable in C is a named storage location that can hold a value of a specific data type.

A variable in C is a constant value that cannot be changed

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many data types are there in C?

10

5

7

3

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the different control structures in C?

Iteration

Condition

Branching

Sequence, Selection, Loop

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a function in C?

A function in C is a variable declaration

A function in C is a data type

A function in C is a block of code that performs a specific task.

A function in C is a loop structure

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How are arrays declared in C?

By using parentheses instead of square brackets

By using curly braces to enclose the elements

By specifying the size of the array first followed by the data type of elements

By specifying the data type of elements followed by square brackets containing the size of the array.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the syntax for declaring a variable in C?

float value;

int num;

bool flag;

string name;

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the size of int data type in C?

2 bytes on 32-bit systems and 4 bytes on 64-bit systems

8 bytes on 32-bit systems and 16 bytes on 64-bit systems

1 byte on 32-bit systems and 2 bytes on 64-bit systems

4 bytes on 32-bit systems and 8 bytes on 64-bit systems

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?