TOPIC 2: BASIC PROGRAM ELEMENTS

TOPIC 2: BASIC PROGRAM ELEMENTS

University

10 Qs

quiz-placeholder

Similar activities

HMS UNIT 1

HMS UNIT 1

University

15 Qs

Internet

Internet

University

11 Qs

Revision YBP128

Revision YBP128

University

10 Qs

Quizzical series- Principles of management

Quizzical series- Principles of management

University - Professional Development

10 Qs

1499EDN Week 3 Cognitive Development

1499EDN Week 3 Cognitive Development

University

11 Qs

Language Origin and Properties

Language Origin and Properties

University

11 Qs

"6 Thinking Hats" Method

"6 Thinking Hats" Method

University

10 Qs

COVID 19 AWARENESS QUIZ

COVID 19 AWARENESS QUIZ

University

12 Qs

TOPIC 2: BASIC PROGRAM ELEMENTS

TOPIC 2: BASIC PROGRAM ELEMENTS

Assessment

Quiz

Education

University

Practice Problem

Medium

Used 28+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

ldentify a statement that tells the compiler to merge the codes contained in an

iostream file with current source code file.

#include iostream

#include <iostream>;

#include <iostream>

#include (iostream)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Identify a VALID identifier.

Total Sum

1Total Sum

Total%Sum

Total_Sum

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Name the type of variable that can be used from any part of including within functions.

local variable

global variable

scope variable

universal variable

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Identify the CORRECT syntax to declare a constant.

constant char GRADE= A;

constant char GRADE = 'A':

const char GRADE = A;

const char GRADE ='A';

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Select a syntax that allows a user to input the value of CGPA.

cin >> CGPA;

cin<< "CGPA";

cout <<" Please enter your CGPA";

cout>>" Please enter your CGPA";

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If variable is used to store value of payment, the suitable data type for the variable is

int

char

float

string

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Identify the operator that compares between two variables.

==

=

++

--

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

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Education