C Programming Basics Quiz

C Programming Basics Quiz

6th - 8th Grade

30 Qs

quiz-placeholder

Similar activities

Cerdas Cermat PKBM Abu Dzar (Paket B)

Cerdas Cermat PKBM Abu Dzar (Paket B)

7th - 9th Grade

25 Qs

Survei Lingkungan Sekolah

Survei Lingkungan Sekolah

1st - 12th Grade

25 Qs

PTS SENI BUDAYA 8 GENAP 22

PTS SENI BUDAYA 8 GENAP 22

8th Grade

25 Qs

Motion

Motion

8th - 12th Grade

25 Qs

Landasan Pendidikan UTS

Landasan Pendidikan UTS

1st Grade - University

25 Qs

Kereta api

Kereta api

KG - Professional Development

25 Qs

Latihan Soal UTS Kelas 8

Latihan Soal UTS Kelas 8

7th - 9th Grade

25 Qs

Ôn tập GDCD 9

Ôn tập GDCD 9

1st - 12th Grade

25 Qs

C Programming Basics Quiz

C Programming Basics Quiz

Assessment

Quiz

Other

6th - 8th Grade

Medium

Created by

Academic Technotran

Used 3+ times

FREE Resource

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;

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?