Bim1

Bim1

1st Grade

15 Qs

quiz-placeholder

Similar activities

Monuments of India

Monuments of India

KG - Professional Development

10 Qs

Historia de la literatura

Historia de la literatura

1st Grade

19 Qs

Ancient Architecture

Ancient Architecture

KG - University

20 Qs

It's as EASY as P-I-E!

It's as EASY as P-I-E!

1st Grade

10 Qs

Arch 113: Pre Test

Arch 113: Pre Test

1st - 5th Grade

10 Qs

QUIZ_SISTEM PENGHAWAAN BUATAN/ AIR CONDITIONING PADA BANGUNA

QUIZ_SISTEM PENGHAWAAN BUATAN/ AIR CONDITIONING PADA BANGUNA

1st - 5th Grade

10 Qs

french

french

1st - 5th Grade

10 Qs

Ergonomia + Acessibilidade

Ergonomia + Acessibilidade

1st - 10th Grade

15 Qs

Bim1

Bim1

Assessment

Quiz

Architecture

1st Grade

Practice Problem

Medium

Created by

Prakash Magar

Used 7+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?