C++ Programming Quiz 2

C++ Programming Quiz 2

University

30 Qs

quiz-placeholder

Similar activities

RM_4. nedelja

RM_4. nedelja

University

25 Qs

Pop Quiz - R Programming - Revision for All Chapter

Pop Quiz - R Programming - Revision for All Chapter

University

25 Qs

General quiz

General quiz

University

25 Qs

Week 3-4

Week 3-4

University

25 Qs

Information Technologies

Information Technologies

University

27 Qs

KUIS MATERI 1

KUIS MATERI 1

University

25 Qs

PRACTICE TEST FOR 4TH QUARTER - TLE ICT 10

PRACTICE TEST FOR 4TH QUARTER - TLE ICT 10

10th Grade - University

27 Qs

K8 - BÀI 2 - THÔNG TIN TRONG MÔI TRƯỜNG SỐ

K8 - BÀI 2 - THÔNG TIN TRONG MÔI TRƯỜNG SỐ

8th Grade - University

29 Qs

C++ Programming Quiz 2

C++ Programming Quiz 2

Assessment

Quiz

Information Technology (IT)

University

Medium

Created by

seven castueras

Used 4+ times

FREE Resource

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is a function in C++?

A set of rules that specify which statements are legal.

A collection of statements that accomplish something when executed.

A set of rules, symbols, and special words.

The meaning of an instruction in a programming language.

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What does syntax refer to in a programming language?

The meaning of the instructions.

The collection of predefined or standard functions.

The rules that specify which statements are legal.

The special symbols used in programming.

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following best defines a programming language?

A set of rules, symbols, and special words.

A predefined function in C++.

The collection of executable statements.

A part of the operating system.

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What do semantic rules define in C++?

The meaning of an instruction.

The rules that specify which statements are legal.

The collection of functions in a program.

The set of special symbols used in coding.

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the purpose of comments in a C++ program?

To provide instructions to the compiler

To explain the code for the reader

To speed up program execution

To store program variables

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following is a correct way to write a multi-line comment in C++?

// This is a multi-line comment

/* This is a multi-line comment */

# This is a multi-line comment #

-- This is a multi-line comment --

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following best describes reserved words (keywords) in C++?

User-defined variable names used in a program.

Special symbols used for arithmetic operations.

Predefined words with specific meanings in the language.

Functions that return values in a program.

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?