LKPD 1

Unduh sebagai doc, pdf, atau txt
Unduh sebagai doc, pdf, atau txt
Anda di halaman 1dari 5

LKPD 1

Penggunaan tipe data, variabel, konstanta, operator dan ekspresi


KELOMPOK :
ANGGOTA : 1. ……………………………………………….
2. ……………………………………………….
3. ……………………………………………….
4. ……………………………………………….
5. ……………………………………………….
6. ……………………………………………….

KELAS : X TKJ 2
TANGGAL : 6 SEPTEMBER 2019
MAPEL : PEMROGRAMAN DASAR
INSTRUKTUR : MUSTIKA FAJARWATI MUSLIKAH, S.Pd

1. KOMPETENSI DASAR
a. Menerapkan penggunaan tipe data, variabel, konstanta, operator dan ekspresi
b. Membuat kode program dengan tipe data, variabel, konstanta, operator dan ekspresi

2. TUJUAN
a. Melalui tanya jawab, peserta didik kelas X dapat menguraikan pengertian tipe data,
variabel, konstanta, operator dan ekspresi dengan tepat dan percaya diri.
b. Melalui diskusi dan menggali informasi, peserta didik kelas X dapat menentukan
konsep dari tipe data, variabel, konstanta, operator dan ekspresi dengan teliti.

3. LANGKAH KEGIATAN
a. Buatlah kelompok yang beranggotakan 5-6 orang dan tunjuklah salah satu sebagai ketua.
b. Bacalah LKPD dengan cermat, kemudian lakukan diskusi untuk menyelesaikan permasalahan
pada LKPD tersebut!

4. SOAL
1) Tentukan tipe data untuk variabel berikut: nama_siswa, jenis_kelamin (disingkat
L/P) dan jumlah_saudara!
variabel Tipe data
nama_siswa ..............................................................
jenis_kelamin (disingkat L/P) ..............................................................
jumlah_saudara ..............................................................

2) Identifikasi Kode Program di bawah ini, tentukan variabel dan konstanta!


Const nama_bidang as string=”persegi_panjang”
Public const Panjang As Integer=8
Private const Lebar As Integer=5
Private const luas As Integer=Panjang*Lebar
Private const Keliling As Integer=2*(Panjang+Lebar)

Jawab
Variabel : .........................................................................................................
……………………………………………………………………
……………………………………………………………………
Konstanta : .......................................................................................................
……………………………………………………………………
……………………………………………………………………

3) Perhatikan Ekspresi pada Algoritma berikut, Tentukan hasil keluarannya !

Jawab:
1) a =................................................................................................................
2) b = ...............................................................................................................
3) c = ................................................................................................................
4) a = ...............................................................................................................
5) b = ...............................................................................................................
6) c = ............ mod ................. = …................
7) a = ................................................................................................................
8) b = ................................................................................................................
9) c = ............ mod ................ = …................
10) a = ..............................................................................................................
11) b = .............................................................................................................
12) c =...............................................................................................................

4) Berdasarkan Konsep Operator Logika, tentukan output dari operasi berikut :


Jawab:
1) A = ...............................................................................................................
2) B = ...............................................................................................................
3) C = ...............................................................................................................
4) D = (A OR B) AND NOT(C)
D = (...........OR.......) AND (......................)
D = ................. AND..............
D = .....................................
5) E = (NOT(A) AND B) OR NOT(C)
E = (...........AND.......) OR (......................)
E = ................. OR..............
E = .....................................
6) D =................................................................................................................
7) E =................................................................................................................

5. PENILAIAN
No Pertanyaan Skor
Max
1 variabel Tipe data 6
nama_siswa ..............................................................
jenis_kelamin ..............................................................
(disingkat L/P)
jumlah_saudara ..............................................................

2 Identifikasi Kode Program di bawah ini, tentukan variabel dan 5


konstanta!

Const nama_bidang as string=”persegi_panjang”


Public const Panjang As Integer=8
Private const Lebar As Integer=5
Private const luas As Integer=Panjang*Lebar
Private const Keliling As Integer=2*(Panjang+Lebar)

Jawab :
Variabel : .....................................................
Konstanta : ...................................................

3 Perhatikan Ekspresi pada Algoritma berikut, Tentukan hasil


keluarannya !

12

Jawab:
1) a= ......................................................
2) b = ......................................................
3) c = ......................................................
4) a = ......................................................
5) b = .....................................................
6) c = ............ mod .............. = ….........
7) .....................................................................
8) b = ..............................................................
9) c = ............ mod ................ = …................
10) a = ............................................................
11) b = ...........................................................
12) c =............................................................

4 Berdasarkan Konsep Operator Logika, tentukan output dari operasi 7


berikut
Jawab:
1) A = ....................................................................
2) B = .....................................................................
3) C = ......................................................................
4) D = (A OR B) AND NOT(C)
D = (...........OR.......) AND (......................)
D = ................. AND..............
D = .....................................
5) E = (NOT(A) AND B) OR NOT(C)
E = (...........AND.......) OR (......................)
E = ................. OR..............
E = .....................................
6) D = .............................................................................
7) E = ...............................................................................

Jumlah Skor 30
Nilai Akhir = Jumlah Skor / 3 = 10

Mengetahui Sukoharjo, Juli 2019


Kepala SMK Negeri 1 Sukoharjo Guru Mata Pelajaran

Drs. Mujiono Mustika Fajarwati Muslikah, S.Pd


NIP. 19610607198803 1 005 NIP. -

Anda mungkin juga menyukai