Bim1

Bim1

1st Grade

15 Qs

quiz-placeholder

Similar activities

heat energy

heat energy

1st - 5th Grade

10 Qs

advanced java

advanced java

1st - 5th Grade

15 Qs

asia

asia

1st - 5th Grade

20 Qs

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

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

1st Grade - University

20 Qs

great scientists

great scientists

1st Grade

10 Qs

untitled

untitled

1st Grade - University

15 Qs

PRESTRESSED & COMPOSITE MATERIALS

PRESTRESSED & COMPOSITE MATERIALS

1st Grade

16 Qs

Homework for Math

Homework for Math

1st - 5th Grade

10 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?