Search Header Logo

C++ Programming Quiz sesi (ii) 2023/2024

Authored by MOHD (PMKL)

Computers

University

Used 3+ times

C++ Programming Quiz sesi (ii) 2023/2024
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Identify THREE (3) types of error in programming.

Grammatical error, single time error, logical error

Syntax error, run-time error, logical error

Syntax error, mathematical error, single error

Grammatical error, calculation error, logic error

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Identify the CORRECT answer to represent the statement shown in Figure A2.

Identifiers

Variable

Constant Variable

Data Types

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Identify the acceptable ways to define variables.

int a; b;

int a, int b;

int a; double b;

int a, double b;

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Identify the suitable symbol that is used for initialization in Programming.

;

_

<< 

=

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Choose the CORRECT C++ syntax to declare a variable named “Address” of string type.

char Address;

char Address (20);

string address;

string address (20);

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Choose the suitable answer for a variable based on the given statement.

Local variable

Global Variable

Function Variable

Class Variable

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Trace the output of the given C++ program in Figure A7.

4, 3, 3, 1

4, 3, 3, 0

4,

3,

3,

0

4,

3,

3,

1

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?