Perhatikan kode program berikut!
X = 5 ; y = 10 ; z = 15 ;
If x < y and y < z :
Print (“True”)
Else :
Print ( “False”)
Jika dijalankan, kode program Python ter-sebut akan memberikan keluaran . . . .
KISI-KISI KELAS X SEM 2
Quiz
•
Computers
•
10th Grade
•
Medium
Firta Fahrudin
Used 9+ times
FREE Resource
50 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
Perhatikan kode program berikut!
X = 5 ; y = 10 ; z = 15 ;
If x < y and y < z :
Print (“True”)
Else :
Print ( “False”)
Jika dijalankan, kode program Python ter-sebut akan memberikan keluaran . . . .
True
False
True and False
SyntaxError
2.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
Operator logika pada bahasa pemrogram-an C yang digunakan pada percabangan if untuk kondisi dua persyaratan dan kedua persyaratan harus dipenuhi adalah . . . .
++
!
II
&&
3.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
Perhatikan kode program berikut di bawah, Ketika dijalankan variable b memberikan hasil …..
#include <stdio.h>
int main(void)
int a72
printf("Isi variabel a: d \n",a);
printf("Isi variabel \n",a--); a: id
printf("Isi variabel \n",a); a: d
printf("\n");
int b = 9;
printf("Isi variabel b: %d \n",b);
printf("Isi variabel b: %d \n",--b);
printf("Isi variabel b: %d \n",b);
return 0;
7,7,6
7,8,8
7,8,9
9,8,8
4.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
Perhatikan kode program berikut ini…..
#include <stdio.h
Int math()
int var:
var-15 24 + 18/37 printf
("Hasil-id", varle
return 0
Jika dijalankan kode program tersebut akan menghasilkan keluaran dengan tipe data
float
integer
char
string
5.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
Cermatilah uraian berikut!
Siswa kelas X diminta untuk membuat program dengan ketentuan menentukan status berdasarkan syarat umur dan jenis kelamin. Untuk output-nya a'.an menghasilkan keluaran: anak perempuan, anak laki-laki, wanita dewasa, dan pria dewasa.
Berdasarkan uraian tersebut perintah yang dapat digunakan untuk membuat program adalah....
for
do while
if
if-else if-else
6.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
Apa fungsi dari printf dalam bahasa C?
Membaca input dari pengguna
Menampilkan output ke layar
Menghitung operasi matematika
Menyimpan data ke file
7.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
Manakah contoh deklarasi variabel bertipe integer yang benar?
int a = 10;
float a = 10;
char a = '10';
string a = "10";
50 questions
SOAL INFORMATIKA KELAS 7 SEM 2
Quiz
•
7th Grade - University
50 questions
REMIDI SAS GENAP INFORMATIKA X
Quiz
•
10th Grade
50 questions
Pemrograman Dasar C#
Quiz
•
10th Grade
50 questions
Informatika - 9 - SEM. II
Quiz
•
9th - 12th Grade
50 questions
Javascript Study I-II
Quiz
•
10th Grade
52 questions
Latihan ASAS GASAL 2425
Quiz
•
9th - 12th Grade
50 questions
Soal Ujian Akhir Semester (UAS) Cloud Computing
Quiz
•
1st Grade - University
45 questions
X TKJ-INSTALASI SISTEM OPERASI
Quiz
•
1st Grade - University
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Taxes
Quiz
•
9th - 12th Grade
17 questions
Parts of Speech
Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression
Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing
Quiz
•
9th - 12th Grade
10 questions
Identifying equations
Quiz
•
KG - University