C Programming Quiz

C Programming Quiz

University

10 Qs

quiz-placeholder

Similar activities

DPMQ2

DPMQ2

University

15 Qs

9 КЛАСС 7 урок Основные алгоритмические конструкции и тип данных

9 КЛАСС 7 урок Основные алгоритмические конструкции и тип данных

9th Grade - University

13 Qs

Refresh Python

Refresh Python

University

10 Qs

QUIZ 2 PLC

QUIZ 2 PLC

10th Grade - University

10 Qs

CLC Lesson 7 Quiz

CLC Lesson 7 Quiz

University

12 Qs

IA 4 de noviembre grupo 8

IA 4 de noviembre grupo 8

University

10 Qs

Data Structures and Algorithms Quiz

Data Structures and Algorithms Quiz

University

14 Qs

C Programming Quiz

C Programming Quiz

Assessment

Quiz

Information Technology (IT)

University

Hard

Created by

Zemmary Batucan

Used 6+ 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.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

int var;

integer var;

var int;

int_var;

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the #include preprocessor directive do in C?

It includes the standard I/O library

It defines standard input-output functions

It starts the main function

It declares variables

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid comment in C?

// This is a comment

/* This is a comment */

Both a and c

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In C, the main() function:

Must always return an integer

It is optional

Can return any data type

Is executed at the end of the program

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following correctly declares a constant in C?

#define PI 3.14

const PI = 3.14

constant PI = 3.14

Both a) and b)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The correct syntax to print "Hello, World!" in C is:

printf("Hello, World!");

print("Hello, World!");

cout << "Hello, World!";

echo "Hello, World!";

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which header file must be included to use the printf() and scanf() functions?

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?