Search Header Logo

C Programming Basics

Authored by Karen Tan

Computers

10th Grade

Used 2+ 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

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the size of 'int' data type in C programming?

2 bytes

16 bytes

4 bytes

8 bytes

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you declare a variable in C?

float value;

string name;

bool flag;

int num;

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the format specifier for printing an integer in C?

%i

%d

%int

%integer

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the 'scanf' function used for in C programming?

It is used to read formatted input from the standard input stream.

It is used to create graphical user interfaces.

It is used to write data to a file.

It is used to perform mathematical calculations.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the 'printf' function used for in C programming?

It is used to print formatted output to the standard output.

It is used to create graphical user interfaces.

It is used to perform mathematical calculations.

It is used to read user input from the keyboard.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type is used to store single characters in C?

char

int

float

bool

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you take user input in C?

Use the print() function in C to take user input.

Use the read() function in C to take user input.

Use the input() function in C to take user input.

Use the scanf() function in C to take user input.

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?