
UTS Pemrograman Kompter 1
Authored by Raditya Artha
Instructional Technology
University
Used 7+ times

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
Header file apakah yang harus ada?
iostream
iomanip
fstream
string
6.
MULTIPLE CHOICE QUESTION
45 sec • 4 pts
Tampilan keluaran dari program disamping adalah
7
7.5
8
7.0
7.
MULTIPLE SELECT QUESTION
45 sec • 4 pts
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

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?