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

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

University

30 Qs

quiz-placeholder

Similar activities

C quiz by Rachai

C quiz by Rachai

5th Grade - University

30 Qs

DFC20113 Programming Fundamentals Set B

DFC20113 Programming Fundamentals Set B

University

30 Qs

CC102 - Seatwork 10 - Array Basics

CC102 - Seatwork 10 - Array Basics

University

25 Qs

C/C++ Programming Quiz

C/C++ Programming Quiz

University

25 Qs

DSA - Q1

DSA - Q1

University

25 Qs

Types and IO in C++

Types and IO in C++

University - Professional Development

26 Qs

2nd Class Test FEB 2021

2nd Class Test FEB 2021

University

25 Qs

Java Programming - Second Internal Examination

Java Programming - Second Internal Examination

University

30 Qs

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

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

Assessment

Quiz

Computers

University

Medium

Created by

MOHD (PMKL)

Used 2+ times

FREE Resource

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

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?