Search Header Logo

C Programming Fundamentals Quiz

Authored by adyt darma

Mathematics

University

Used 6+ times

C Programming Fundamentals Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of the following code?

Hello, World!

hello, world!

Error

No output

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which symbols are used to start comments in C?

// or /* */

--

#

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type is suitable for storing decimal values in C?

int

float

char

bool

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a correct way to declare a variable in C?

int x = 10;

variable int x = 10;

declare int x = 10;

int: x = 10;

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of the following code?

53

8

15

Error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How is a boolean value typically represented in C?

int (0 and 1)

bool

char

float

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which statement is used to implement conditional branching in C?

switch

if...else

loop

goto

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?