Search Header Logo

Dasprog X PPLG

Authored by Renra Renra

Computers

9th - 12th Grade

Used 2+ times

Dasprog X PPLG
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Tipe data apa yang digunakan untuk menyimpan angka desimal di C++?

int
char
float
string
bool

2.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Tipe data apa yang digunakan untuk menyimpan nilai boolean di C++?

bool
char
float
string
int

3.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Bagaimana cara mendeklarasikan variabel x sebagai bilangan bulat di C++?

int x;
var x;
integer x;
x int;
float x;

4.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Tipe data yang digunakan untuk menyimpan karakter tunggal di C++ adalah ...

int
char
string
float
double

5.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Bagaimana cara menulis percabangan if dalam C++?

if (kondisi) { //kode }
if (kondisi);
if {kondisi} {kode}
if (kondisi)
if {kode;}

6.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Mana dari berikut ini yang benar untuk else if di C++?

if {else if} {kode;}
else if(kondisi)
if (kondisi1) { //kode } else if (kondisi2) { //kode }
if (kondisi1); else if(kondisi2)
else if {kode;}

7.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Output dari kode int x = 10; if (x > 5) { cout << "True"; } else { cout << "False"; } adalah ...

True
false
Tidak ada output
Error
Undefined

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?