C++ Programming Quiz 2

C++ Programming Quiz 2

University

30 Qs

quiz-placeholder

Similar activities

General quiz

General quiz

University

25 Qs

Java Quiz in tamil theme by jamal

Java Quiz in tamil theme by jamal

University

25 Qs

Week 3-4

Week 3-4

University

25 Qs

Loops, enums,arrays,conditional statements, variables

Loops, enums,arrays,conditional statements, variables

University

30 Qs

Information Technologies

Information Technologies

University

27 Qs

GROUP2 - QUIZ

GROUP2 - QUIZ

University

25 Qs

Programming Fundamentals Quiz

Programming Fundamentals Quiz

University

28 Qs

Excel Quiz

Excel Quiz

4th Grade - University

25 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?