C++ Basics Quiz

C++ Basics Quiz

University

62 Qs

quiz-placeholder

Similar activities

ISPFL8 Endterm Exam

ISPFL8 Endterm Exam

University

60 Qs

 CSC 113 - Computer Programming 2

CSC 113 - Computer Programming 2

University

60 Qs

C++

C++

University

59 Qs

C++ Final Quiz

C++ Final Quiz

University

65 Qs

תשפה - סיום שנה ט-2

תשפה - סיום שנה ט-2

8th Grade - University

59 Qs

Repaso Lenguaje C

Repaso Lenguaje C

University

65 Qs

Baldwin University College (OSU ACCRA)

Baldwin University College (OSU ACCRA)

University

61 Qs

Online Quiz for B.Tech AI/ML II Year III Semester

Online Quiz for B.Tech AI/ML II Year III Semester

University

60 Qs

C++ Basics Quiz

C++ Basics Quiz

Assessment

Quiz

Computers

University

Hard

Created by

Saqib Mahmood undefined

FREE Resource

62 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used to declare a variable in C++?

define

auto

var

int

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid variable name?

1stValue

int

_myVar

double

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of variables in C++?

To store data values

To perform loops

To define functions

To manage memory allocation

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you assign a value to a variable in C++?

int x := 5;

int x = 5;

x = 5;

let x = 5;

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a valid declaration of an integer variable?

int x;

int x := 5;

int x == 5;

int x is 5;

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used to make a variable constant?

const

static

final

let

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What type of data can be stored in a variable of type int?

Decimal numbers

Whole numbers

Text

Boolean values

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?