UTSSKDP1

UTSSKDP1

University

13 Qs

quiz-placeholder

Similar activities

CSNP 04103 C++ Midterm preparation

CSNP 04103 C++ Midterm preparation

University - Professional Development

11 Qs

C++ 1st ONLINE QUIZ

C++ 1st ONLINE QUIZ

University

13 Qs

C++ Array Quick Review

C++ Array Quick Review

University

10 Qs

Informatika x

Informatika x

University

10 Qs

Qûîz

Qûîz

University

15 Qs

CSNP-04103 Chapter 2 - Components & Data Types

CSNP-04103 Chapter 2 - Components & Data Types

University

10 Qs

CSC126_Chapter4_Part1

CSC126_Chapter4_Part1

University

10 Qs

Programming I Quiz 1

Programming I Quiz 1

University

11 Qs

UTSSKDP1

UTSSKDP1

Assessment

Quiz

Computers

University

Hard

Created by

Tito A.

FREE Resource

13 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of including the 'iostream' library in a C++ program?

To perform input and output operations

To define the main function

To declare variables

To create loops

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the syntax for declaring an integer variable named 'usia' with a value of 23?

int usia = 23;

integer usia = 23;

var usia = 23;

usia = 23;

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the 'endl' statement do in C++?

Inserts a new line and flushes the output buffer

Performs a mathematical operation

Declares a variable

Inputs data from the user

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the 'main' function in a C++ program?

It is the entry point of the program

It performs input and output operations

It declares variables

It creates loops

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the data type of the variable 'usia' in the given code?

Integer

String

Boolean

Float

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the 'cin' statement in C++?

To input data from the user

To output data to the console

To declare a variable

To perform mathematical operations

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct syntax for declaring a string variable named 'name'?

var name = 'value';

name = 'value';

string name = 'value';

var name = value;

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?