Search Header Logo

C Programming Basics

Authored by Deepshikha Saxena

Other

Used 129+ times

C Programming Basics
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.

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

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?