Dasar-dasar Pemrograman C++

Dasar-dasar Pemrograman C++

University

57 Qs

quiz-placeholder

Similar activities

CSCE 1336 Final

CSCE 1336 Final

University

60 Qs

ôn tập c#

ôn tập c#

University

62 Qs

JAVA 4C123 4

JAVA 4C123 4

University

60 Qs

Program Logic Formulation

Program Logic Formulation

University

60 Qs

Simulado_Python_ADS

Simulado_Python_ADS

University

52 Qs

C Programming Quiz

C Programming Quiz

University

53 Qs

PF 101 - Activity 5 (OO Design and Principles

PF 101 - Activity 5 (OO Design and Principles

University

55 Qs

PPS Quiz 1 MCA 2

PPS Quiz 1 MCA 2

University

62 Qs

Dasar-dasar Pemrograman C++

Dasar-dasar Pemrograman C++

Assessment

Quiz

Computers

University

Hard

Created by

Febriyanti Darnis

FREE Resource

57 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is meant by a constant in C++?

A value that can be changed while the program runs.

A fixed value that cannot be changed after being declared.

A function that returns a value.

A variable stored in memory.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How to declare an integer variable in C++?

int variable;

float variable;

string variable;

char variable.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What data type is used to store a single character in C++?

int

double

char

string

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which statement is used to start a conditional block in C++?

switch

if

for

while

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a constant in C++?

A variable whose value can be changed

A variable that cannot be changed

A function that returns a fixed value

A logical operator

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How to declare a constant in C++?

int const a = 10;

const int a = 10;

#define a 10

All answers are correct

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a variable in C++?

A place to store data whose value can change

A place to store data whose value cannot change

A mathematical operator

A fixed value

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?