Basic C Knowledge Exercise

Basic C Knowledge Exercise

University

10 Qs

quiz-placeholder

Similar activities

Planning and Implementation of Information Security

Planning and Implementation of Information Security

University

10 Qs

GET CONNECTED REDES E INTERNET

GET CONNECTED REDES E INTERNET

University

10 Qs

T02: Python - The Basics

T02: Python - The Basics

University

10 Qs

REVIEW AD KLS 9

REVIEW AD KLS 9

9th Grade - University

10 Qs

INTRODUCCION A LA PROGRAMACION

INTRODUCCION A LA PROGRAMACION

6th Grade - University

10 Qs

2025 python class first quiz

2025 python class first quiz

9th Grade - University

10 Qs

Midterm Quiz # 1 - GEC 9

Midterm Quiz # 1 - GEC 9

University

15 Qs

MT_Chapter 5 & 6 (set 2)

MT_Chapter 5 & 6 (set 2)

University

10 Qs

Basic C Knowledge Exercise

Basic C Knowledge Exercise

Assessment

Quiz

Computers

University

Practice Problem

Easy

Created by

Akym Morgen

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

FILL IN THE BLANK QUESTION

1 min • 2 pts

Insert the missing parts of the code:

int ??? ( ) {
??? ("Hello World");
return 0;
}

PS. Put commas if answers are two or more (e.g. alpha, beta)

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Insert missing special characters in writing comments in C:

??? This is a single-line comment
??? This is a multi-line comment ???

// Single-line
// Multi-line //

// Single-line
** Multi-line **

// Single-line
/* Multi-line */

/* Single-line
/* Multi-line */

3.

FILL IN THE BLANK QUESTION

1 min • 2 pts

Create a variable named myNum and assign the value 47 to it.

?? ??? = ??;

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which is the correct specifier to output the value of myNum?

int myNum = 15; printf("???", myNum);

%c

d%

%ld

%d

5.

FILL IN THE BLANK QUESTION

1 min • 2 pts

Display the sum of 17 + 33, using two variables: a and b.


??? ?? = ???;
int b = 33;
printf("%d", a + b);

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which code parts is needed to create three variables of the same type?

??? myNum1 = 10 ? myNum2 = 15 ? myNum3 = 25;
printf("%d", myNum1 + myNum2 + myNum3);

int and comma (,)

int and semi-colon (;)

int and colon (;)

int and ampersand (&)

7.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Add the correct data type for the following variables:

??? myNum = 6;
??? myFloatNum = 3.1419;
??? myLetter = 'D';

PS. Put commas for multiple answers (e.g. alpha, beta)

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?

Discover more resources for Computers