Search Header Logo

UTS Pemrograman Kompter 1

Authored by Raditya Artha

Instructional Technology

University

Used 7+ times

UTS Pemrograman Kompter 1
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

45 sec • 4 pts

Setiap program C++ harus memiliki

cout statement

function main

#include statement

All of the above

2.

MULTIPLE CHOICE QUESTION

45 sec • 4 pts

preprocessor dimulai dengan

#

!

<

//

3.

MULTIPLE SELECT QUESTION

45 sec • 4 pts

Manakah dari pernyataan berikut ini yang bukan merupakan pernyataan assignment yang valid?

total = 34;

11 = jumlah;

profit = 10000

huruf = 'Z';

4.

MULTIPLE CHOICE QUESTION

45 sec • 4 pts

Manakah yang merupakan penulisan if else yang benar

if (belajar>3)

cout<<pusing;

if (belajar>3)

{ cout<<"pusing"}

if (belajar>3)

cout>>pusing;

if (belajar>3)

cout<<"pusing";

5.

MULTIPLE SELECT QUESTION

45 sec • 4 pts

Media Image


Header file apakah yang harus ada?

iostream

iomanip

fstream

string

6.

MULTIPLE CHOICE QUESTION

45 sec • 4 pts

Media Image

Tampilan keluaran dari program disamping adalah

7

7.5

8

7.0

7.

MULTIPLE SELECT QUESTION

45 sec • 4 pts

Media Image

Manakah langkah yang tepat untuk memperbaiki program disamping?

gunakan huruf kecil untuk Cin dan Cout

tambahkan identation/tab pada isi fungsi main()

gunakan >> pada baris 12

tambahan colon (;) pada akhir baris 12

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?