Programming Fundamentals in C++

Programming Fundamentals in C++

University

10 Qs

quiz-placeholder

Similar activities

GST & Custom Duty  B.Com.CA III yr.(Aug.17 at 11 am)

GST & Custom Duty B.Com.CA III yr.(Aug.17 at 11 am)

University

11 Qs

II ECM_Quiz 1

II ECM_Quiz 1

University

15 Qs

PRE & POST TEST TRAINING PERALATAN ESS

PRE & POST TEST TRAINING PERALATAN ESS

University

10 Qs

java programming quiz II

java programming quiz II

University

10 Qs

Clothing Construction Midterm Quiz 1

Clothing Construction Midterm Quiz 1

University

15 Qs

SOAL MATERI K2TK

SOAL MATERI K2TK

University - Professional Development

10 Qs

MACHINE VISION

MACHINE VISION

University

7 Qs

LIBRARY RESEARCH

LIBRARY RESEARCH

University - Professional Development

15 Qs

Programming Fundamentals in C++

Programming Fundamentals in C++

Assessment

Quiz

Education

University

Medium

Created by

AZURA (PBU)

Used 2+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a variable in C++?

A variable in C++ is a function that performs calculations.

A variable in C++ is a constant value that never changes.

A variable in C++ is a named storage location that can hold a value of a particular data type.

A variable in C++ is a reserved keyword used for loops.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Explain the difference between the = and == operators in C++.

The = operator is for comparison, while the == operator is for assignment.

The = operator is for assignment, while the == operator is for comparison.

The = operator is used for bitwise operations, while the == operator is for logical operations.

The = operator is used for incrementing values, while the == operator is for decrementing values.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the modulus operator (%) used for in C++?

It divides two numbers

It multiplies two numbers

It concatenates two strings

It returns the remainder of the division of two numbers.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you declare a constant variable in C++?

const myConstant = 5;

constant int myConstant = 5;

const int myConstant = 5;

int myConstant = 5;

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the increment (++) and decrement (--) operator used for in C++?

They are used to concatenate strings in C++.

They are used to increment and decrement the value of variables in C++.

They are used to multiply and divide variables in C++.

They are used to compare variables in C++.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Explain the concept of assignment operators in C++.

Assignment operators in C++ are used to compare values instead of assigning them.

Assignment operators in C++ are not supported in the language.

Assignment operators in C++ are used to assign values to variables by combining the assignment operator '=' with other operators to perform the operation and assign the result back to the variable.

Assignment operators in C++ are only used for arithmetic operations.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the scope resolution operator (::) used for in C++?

It is used to perform arithmetic operations in C++.

It is used to declare variables in C++.

It is used to define a new class in C++.

It is used to access class members and static members in C++.

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?