PL1 PRELIM EXAM

PL1 PRELIM EXAM

University

50 Qs

quiz-placeholder

Similar activities

Technical Training Test for III BTech - VCE - CSE

Technical Training Test for III BTech - VCE - CSE

University

45 Qs

220 1001 Day 12

220 1001 Day 12

University

47 Qs

Quiz Python

Quiz Python

University

50 Qs

C Programming Quiz

C Programming Quiz

University

50 Qs

Evaluasi Sistem Mikroprosesor (1-6)

Evaluasi Sistem Mikroprosesor (1-6)

University

50 Qs

Power BI Quiz

Power BI Quiz

University

50 Qs

script_programming_part_2+3

script_programming_part_2+3

University

49 Qs

c language

c language

University

54 Qs

PL1 PRELIM EXAM

PL1 PRELIM EXAM

Assessment

Quiz

Computers

University

Medium

Created by

John Miranda

Used 7+ times

FREE Resource

50 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the "cout" object in C++?
Console output
File output
Conditional output
Character output

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the answer in this statement; age >=18 && age <=100 if the age is 12?

True

False

N/A

Undefined

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you comment a single-line in C++?
// comment
/* comment */
-- comment
## comment

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used to define a constant in C++?
const
constant
define
final

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the "new" operator in C++ do?
Allocates memory for variables
Deletes a variable
Initializes a variable
Performs mathematical operations

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the "endl" in C++?
Ends the program
Ends a loop
Ends a function
Inserts a newline character and flushes the stream

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to get the length of a string in C++?
strlen()
length()
size()
strlength()

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?