Search Header Logo

Bim1

Authored by Prakash Magar

Architecture

1st Grade

Used 7+ times

Bim1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is NOT a valid data type in C?

int

string

char

float

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the syntax to declare a variable in C?

var_name data_type;

type var_name;

variable data_type;

data_type var_name;

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What does the 'scanf' function do in C?

Clears the console screen

Reads input from the user

Prints output to the console

None of the above

4.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which of the following is the correct way to comment a single line in C?

-- Comment

# Comment

/* Comment */

// Comment

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the purpose of the "sizeof" operator in C?

It returns the size of a pointer in bytes

It returns the size of a data type in bytes

It returns the size of a function in bytes

It returns the size of a variable in bytes

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the correct way to initialize an array of integers in C?

int arr{}(1, 2, 3, 4, 5);

int arr{} = {1, 2, 3, 4, 5};

int arr() = {1, 2, 3, 4, 5};

int arr[] = {1, 2, 3, 4, 5};

7.

FILL IN THE BLANK QUESTION

20 sec • 2 pts

Which keyword is used to define a constant in C?

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?