Bim1

Bim1

1st Grade

15 Qs

quiz-placeholder

Similar activities

e-CAT BSKM-5 (Bab 10 : SAKRAMEN INISIASI GEREJA)

e-CAT BSKM-5 (Bab 10 : SAKRAMEN INISIASI GEREJA)

1st Grade - University

20 Qs

BASISDATA01

BASISDATA01

1st Grade

20 Qs

The family

The family

1st - 5th Grade

19 Qs

Bayu Sutera -3B izara

Bayu Sutera -3B izara

1st Grade

15 Qs

WAY to SHINE DAY

WAY to SHINE DAY

1st - 5th Grade

13 Qs

Republic day Quiz

Republic day Quiz

1st - 5th Grade

11 Qs

Past Simple

Past Simple

1st Grade

20 Qs

Do not delete(e2e) - All Ques tiontypes

Do not delete(e2e) - All Ques tiontypes

1st - 5th Grade

11 Qs

Bim1

Bim1

Assessment

Quiz

Architecture

1st Grade

Medium

Created by

Prakash Magar

Used 7+ times

FREE Resource

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?

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?