TOPIC 2: BASIC PROGRAM ELEMENTS

TOPIC 2: BASIC PROGRAM ELEMENTS

University

10 Qs

quiz-placeholder

Similar activities

S1 DATA SCIENCE QUIZ

S1 DATA SCIENCE QUIZ

University

11 Qs

MMU_International Student Briefing

MMU_International Student Briefing

University

9 Qs

1.0 Introduction To Fundamentals Of Programming

1.0 Introduction To Fundamentals Of Programming

University

10 Qs

funciones en c++

funciones en c++

University

10 Qs

cppp-2

cppp-2

University

9 Qs

University's Rules and Regulations

University's Rules and Regulations

University

8 Qs

Academic Leadership-Conclave-2022

Academic Leadership-Conclave-2022

University

10 Qs

sample quiz

sample quiz

University

10 Qs

TOPIC 2: BASIC PROGRAM ELEMENTS

TOPIC 2: BASIC PROGRAM ELEMENTS

Assessment

Quiz

Education

University

Medium

Used 25+ times

FREE Resource

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.

==

=

++

--

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?