C Programming Basics Quiz

C Programming Basics Quiz

6th - 8th Grade

•

30 Qs

quiz-placeholder

Similar activities

Ulangan Harian Kerajinan Bahan Lunak

Ulangan Harian Kerajinan Bahan Lunak

8th Grade

•

25 Qs

Unit 1: Prologue

Unit 1: Prologue

8th - 12th Grade

•

25 Qs

KUIZ MAULIDURRASUL

KUIZ MAULIDURRASUL

7th Grade

•

25 Qs

KUIS BAB 1 KELAS VII

KUIS BAB 1 KELAS VII

7th Grade

•

25 Qs

BM T6 - KATA TUGAS

BM T6 - KATA TUGAS

6th Grade

•

25 Qs

G.K QUIZ Class 7 School Activity

G.K QUIZ Class 7 School Activity

7th - 8th Grade

•

25 Qs

TEMA 6 TH 2023-2024

TEMA 6 TH 2023-2024

6th Grade

•

25 Qs

Class Rules and Procedures

Class Rules and Procedures

6th - 8th Grade

•

29 Qs

C Programming Basics Quiz

C Programming Basics Quiz

Assessment

Quiz

•

Other

•

6th - 8th Grade

•

Practice Problem

•

Medium

Created by

Academic Technotran

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

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

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct syntax to print a message in C?

printf('Hello');

print('Hello');

echo('Hello');

cout << 'Hello';

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct data type to store decimal numbers in C?

int

float

char

string

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which symbol is used to end a statement in C?

.

;

:

,

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which header file is required to use printf() in C?

math.h

stdio.h

conio.h

stdlib.h

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid variable name in C?

2variable

_variable

variable-2

var iable

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the size of an int in C?

2 bytes

4 bytes

Depends on the system

8 bytes

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you declare a constant in C?

constant int x = 10;

int x = 10;

const int x = 10;

define const x = 10;

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?