wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Logika informatika

Total questions: 40

Worksheet time: 20mins

Name
Class
Date
1.

Apa yang dimaksud dengan kalimat deklaratif...

a)

Kalimat yang menyatakan sebuah fakta yang mempunyai nilai kebenaran benar (true) atau salah (false), dan tidak ke duanya

b)

Kalimat yang menyatakan sebuah fakta yang mempunyai nilai kebenaran benar (true) dan salah (false), atau tidak ke duanya

c)

Kalimat yang menyatakan sebuah fakta yang mempunyai nilai kebenaran benar (true) atau salah (false), dan ke duanya

d)

Kalimat yang menyatakan sebuah fakta yang mempunyai nilai kebenaran benar (true) dan salah (false), atau ke duanya

2.

Jakarta bukanlah ibu kota negara indonesia.

Kalimat di atas merupakan contoh dari...

a)

Kalimat deklaratif

b)

Kalimat bukan deklaratif

c)

Kalimat efektif

d)

Kalimat tidak efektif

3.

Logika proporsional terdiri dari kalimat-kalimat, khususnya kalimat deklaratif sehingga dapat dianggap sebagai bahasa. Ketika berkaitan dengan bahasa maka ada dua aturan yang tidak dapat dipisahkan, yaitu....

a)

Aturan sintatik dan aturan semantik

b)

Aturan sitantik dan aturan simantik

c)

Aturan sentatik dan aturan semantik

d)

Aturan sintatik dan aturan simantik

4.

Definisi formal dari sebuah proposisi adalah...

a)

Sebuah blok bangunan logika dasar

b)

Sebuah kalimat pernyataan

c)

Kalimat yang memiliki nilai kebenaran benar

d)

Kalimat yang memiliki nilai kebenaran salah

5.

Proposition symbols dikelompokkan menjadi dua, yaitu...

a)

Truth symbols dan propositional symbol

b)

True symbols dan propositional symbol

c)

False symbol dan propotional symbol

d)

Trust symbol dan propositional symbol

6.

P, Q, R, S,

Simbol-simbol di atas merupakan contoh dari...

a)

Truth symbol

b)

Propositional symbol

c)

Declarative symbol

d)

True dan false

7.

True dan false.

Simbol-simbol di atas merupakan contoh dari...

a)

Truth symbol

b)

Propositional symbol

c)

Declarative symbol

d)

P, Q, R, S, T, U.

8.

Kalimat-kalimat di dalam logika proposional dibangun dari....

a)

Truth symbol dan propositional symbol

b)

Truth symbol dan propositional connective

c)

Propositional connective dan propositional symbol

d)

Propositions dan propositional connective

9.

not, and, or, if-then, if-and-only-if, if-then-else.

Contoh-contoh di atas merupakan contoh dari...

a)

Truth symbol

b)

Propositional symbol

c)

Propositional connective

d)

Propositions

10.

Kalimat dalam logika propositional dibentuk berdasarkan aturan sintatik, berapa banyak aturan sintatik yang berlaku

a)

5

b)

6

c)

7

d)

8

11.

Propositional connective "not" digunakan pada aturan sintatik yang disebut...

a)

Aturan negasi

b)

Aturan konjungsi

c)

Aturan disjungsi

d)

Aturan implikasi

12.

Propositional connective "if-and-only-if" digunakan pada aturan sintatik yang disebut...

a)

Aturan equivalen

b)

Aturan kondisional

c)

Aturan proposisi

d)

Aturan implikasi

13.

Yang merupakan notasi pseudocode, yaitu...

a)

<=>

b)

Binary

c)

If-then-else

d)

Not(.....)

14.

Penulisan notasi yang membutuhkan lebih dari satu baris dan strukturnya lebih mudah dibaca secara pengamatan, yaitu penulisan cara...

a)

Indentasi

b)

Kurung mutlak

c)

Kurung kurawal

d)

Kurung siku

15.

Notasi function: ifthenelse(P, and(P,Q), ifthen(Q,R))

Jika di conversikan ke notasi pseudocode, yaitu.....

a)

If P then (P and Q) else (if Q then R)

b)

If Q then (P and Q) else (if P then R)

c)

If P then P and Q else if Q then R

d)

If Q then P and Q else if P then R

16.

Informasi tentang nilai-nilai kebenaran dari simbol-simbol proposional dalam kalimat logika proposional disediakan oleh....

a)

Notasi

b)

Konversi notasi

c)

Interpretasi

d)

Sintatik

17.

Interpretasi memberikan suatu nilai kebenaran ke masing-masing himpunan simbol proposonal berupa...

a)

True dan false

b)

True atau false

c)

True

d)

False

18.

apa yang dimaksud dengan empty interpretation?

a)

memberi nilai kebenaran true ke sebuah proposisi

b)

memberi nilai kebenaran false ke sebuah proposisi

c)

tidak memberi nilai kebenaran ke suatu simbol proposisi manapun

d)

memberikan dua nilai kebenaran pada satu proposisi

19.

Tentukan suatu interpretasi yang memenuhi definisi formal untuk sembarang kalimat logika proposisional

a)

I: {P <- true, Q<-false}

b)

I: {P <- true, P<-false}

c)

I: {Q <- true, Q<-false}

d)

I: {R <- false, R<-false}

20.

Tentukan suatu interpretasi yang tidak memenuhi definisi formal untuk sembarang kalimat logika proposisional

a)

I: {P <- true, Q<-false}

b)

I: {P <- true, Q<-false, R <- false}

c)

I: {Q <- true, R<-false}

d)

I: {R <- false, Q <- true, Q R<-false}

21.

Tentukan kalimat logika proposisional yang memuat tiga simbol proposisional dan tiga konektif...

a)

if-then(and(P, Q), or(R, not(S))

b)

and(if-then(P, and(P, R), not(Q))

c)

or(not(S), R)

d)

if-then-else(and(P, R), S, not (Q, or(S, P))

22.

Diketahui kalimat logika proposisional F: P if and only if (Q and not R)

dan G: if (P and not Q) then not R else (if Q then not P)

dengan menerapkan konektif and pada kalimat F dan G, tentukan salah satu kemungkinan hasilnya...

a)

(if not (P and not Q) then not R else (if Q then not P)) and (P if and only if (Q and not R))

b)

(P if and only if (Q and not R)) and (if (P and not Q) then not R else (if Q then not P))

c)

(not P if and only if (Q and not R)) and (if (P and not Q) then not R else (if Q then not P))

d)

(P if and only if (Q and not R)) and (if (P and not Q) then not R else (if Q then P))

23.

if (P and not Q) then R

Jika diubah ke notasi fungsi maka kalimat yang benar adalah

a)

if-then(and(P, not (Q)), and(P, R))

b)

if-then(R, and(P, not (Q)))

c)

if-then(and(P, not (Q)), R)

d)

and(P, not(Q))

24.

if-then-else(P, or(not(P), not(R)), Q)

Jika diubah ke notasi pseudocode, maka kalimat yang benar adalah.

a)

if P then notP or notR else Q

b)

if notP or notR then Q else not P

c)

if P then P or R else Q

d)

if P then notP or not R else not Q

25.

if (P and not Q) then R

Jika diubah ke notasi matematika maka kalimat yang benar adalah

a)

(P ∧ ¬Q) ↔ ¬R

b)

(P ∨ ¬Q) ↔ R

c)

(P ∨ ¬Q) → R

d)

(¬P ∧ Q) → R

26.

((P ∨ ¬Q) → R) ∧ (S ∨ Q)

Jika diubah ke notasi fungsi, maka kalimat yang benar adalah

a)

and(if-then(or(P, not(Q)), R), or(S, Q))

b)

and(if-then-else(or(P, not(Q)), R), or(S, Q))

c)

and(if-then(or(P, not(Q)), S), or(S, Q))

d)

or(if-then(or(P, not(Q)), R), or(S, Q))

27.

((P ∨ ¬Q) → R) ∧ (S ∨ Q)

Jika diubah ke notasi pseudocoe, maka kalimat yang benar adalah

a)

(if P or notQ then R)or(S or Q)

b)

(if P and notQ then R)and(S or Q)

c)

(if P or notQ then R)and(S or Q)

d)

(if P or Q then R)and(S or Q)

28.

Tentukan suatu interpretasi dari kalimat logika proposisional F: if not true then (not P or Q) else R

a)

I: {P <- true, Q<- false, S <- true}

b)

I: {P <- true, Q<- false, R <- true}

c)

I: {P <- true, Q<- false, P <- true}

d)

I: {Q<- false, S <- true}

29.

Tentukan suatu interpretasi dari kalimat logika proposisional F: if S then (not P or Q) else false

a)

I: {P <- true, Q<- false, S <- true}

b)

I: {P <- true, Q<- false, R <- true}

c)

I: {P <- true, Q<- false, P <- true}

d)

I: {Q<- false, S <- true}

30.

Tentukan suatu interpretasi yang sama dengan interpretasi I:{P <- false, Q <- true, R<- false, S <- false}

a)

J:{S <- false, R <- true, Q<- false, P <- false}

b)

J:{S <- false, R <- false, Q<- true, P <- true}

c)

J:{S <- true, R <- false, Q<- true, P <- true}

d)

J:{R <- false, Q<- true, P <- true}

31.

E: if not P then (Q and R) else not S

Tentukan nilai kalimat E di bawah interpretasi

I : {P <- False, Q <- False, R <- True, S <- True}

a)

True

b)

False

32.

E: if P then (Q and R) else not S

Tentukan nilai kalimat E di bawah interpretasi

I : {P <- False, Q <- False, R <- True, S <- True}

a)

True

b)

False

33.

E: if P then (Q or R)

Tentukan nilai kalimat E di bawah interpretasi

I : {P <- False, Q <- False, R <- False}

a)

True

b)

False

34.

G : (P or Q) if and only if(Q and R)

di bawah ini interpretasi yang benar ketika G bernilai False

a)

I : {P <- False, Q <- False, R <- True}

b)

I : {P <- True, Q <- True, R <- True}

c)

I : {P <- False, Q <- True, R <- True}

d)

I : {P <- True, Q <- True, R <- False}

35.

H : if Q and R then not P

di bawah ini interpretasi yang benar ketika H bernilai False

a)

I : {P <- False, Q <- False, R <- True}

b)

I : {P <- True, Q <- True, R <- True}

c)

I : {P <- False, Q <- True, R <- True}

d)

I : {P <- True, Q <- True, R <- False}

36.

I: {P ← False, Q ← True}, tentukan hasil perluasan interpretasi <P ← True>.I

a)

J: {P ← False, Q ← True}

b)

J: {P ← True, Q ← False}

c)

J: {P ← True, Q ← True}

d)

J: {P ← False, Q ← False}

37.

I: {P ← False, Q ← True}, tentukan hasil perluasan interpretasi <R ← True>.I

a)

J: {P ← False, Q ← True, R ← True}

b)

J: {P ← True, Q ← False, R ← True}

c)

J: {P ← True, Q ← True, R ← True}

d)

J: {P ← False, Q ← False, R ← True}

38.

I: {P ← False, Q ← True, R ← True}, tentukan hasil perluasan interpretasi

<R← True>.<R ← False>. <P ← False>. <Q ← False>. <P ← True>.I

a)

J: {P ← False, Q ← True, R ← True}

b)

J: {P ← True, Q ← False, R ← True}

c)

J: {P ← True, Q ← True, R ← True}

d)

J: {P ← False, Q ← False, R ← True}

39.

Diketahui sebuah interpretasi I: {P ← False, Q ← True}, dan

kalimat E: if (if P then not R) then (Q and not R) else (not P or S)

tentukan perluasan interpretasi terhadap I, sehingga hasil perluasannya merupakan interpretasi untuk kalimat E.

a)

<R ← False>.<S ← False>.I

b)

<P ← True>.<S ← False>.I

c)

<R ← False>.<Q ← True>.I

d)

<P ← False>.<Q ← False>.I

40.

Diketahui sebuah interpretasi I: {P ← False, S ← True}, dan

kalimat E: if (if P then not Q) then (not Q) else (P and Q), dan

F: (Q or R) if and only if (R and S)

tentukan perluasan interpretasi terhadap I, sehingga hasil perluasannya merupakan interpretasi untuk kalimat E dan F.

a)

<R ← False>.<S ← False>.<R ← True>.<S ← True>.I

b)

<P ← True>.<Q ← False>.<R ← True>.<S ← False>.I

c)

<R ← False>.<P ← True>.<R ← True>.<S ← False>.I

d)

<P ← False>.<Q ← False>.I