20
Your browser does not support inline frames or is currently configured not to display inline frames. Waktu Sisa : 1:57:16 1 . Diberikan MIDlet dengan source kode sebagai berikut. Source kode di atas dapat di compile dan di run pada WTK. Akan tetapi ketika di-Lauch pada emulator tidak pernah bisa. Apakah penyebab dari masalah tersebut? Terdapat parameter yang kurang benar ketika meng- instanciate objek alert. Objek alert tidak pernah dipanggil Objek dari class Display tidak pernah dipanggil

A PC is able to reach devices that are located both inside and outside the network. However, when trying to reach an FTP server that is located on the same subnet, the PC fails to

Embed Size (px)

Citation preview

Page 1: A PC is able to reach devices that are located both inside and outside the network. However, when trying to reach an FTP server that is located on the same subnet, the PC fails to

Your browser does not support inline frames or is currently configured not to display inline frames. Waktu Sisa : 1:57:16

1. Diberikan MIDlet dengan source kode sebagai berikut.

Source kode di atas dapat di compile dan di run pada WTK. Akan tetapi ketika di-Lauch pada emulator tidak pernah bisa. Apakah penyebab dari masalah tersebut?

  Terdapat parameter yang kurang benar ketika meng-instanciate objek alert.

   

Objek alert tidak pernah dipanggil

   

Objek dari class Display tidak pernah dipanggil

   

Kesalahan dalam pemanggilan method-method dari objek alert.

   

Page 2: A PC is able to reach devices that are located both inside and outside the network. However, when trying to reach an FTP server that is located on the same subnet, the PC fails to

Kurang lengkap dalam mengimplemetasikan method-method dari abstact class

   

2. Sebuah class turunan Canvas mengoveride method paint sebagai berikut.

Manakah output yang benar?

 

   

   

   

   

   

Page 3: A PC is able to reach devices that are located both inside and outside the network. However, when trying to reach an FTP server that is located on the same subnet, the PC fails to

3. Tentukan hasil dari running program di bawah ini?

 

Terjadi eksepsi

   

Terjadi kegagalan saat kompilasi

   

Layar emulator berwarna hijau telur (R=0, G=255,B=255)

   

Persegi panjang tumpul akan ditampilkan

   

Variabel a akan diisi nilai warna di layar emulator

   

4. Apakah hubungan antara RMS dan SQL?

 

Class-class yang ada dalam package javax.microedition.rms terpadat dalam java.sql

   Sebagian class-class yang ada dalam package java.sql terpadat dalam javax.microedition.rms

   RMS dan SQL mempunyai method-method yang hampir sama untuk memanipulasi record-record dalam database.

   

Keduanya tidak memiliki hubungan sama sekali

   

Page 4: A PC is able to reach devices that are located both inside and outside the network. However, when trying to reach an FTP server that is located on the same subnet, the PC fails to

5. Pernyataan mana yang tepat mengenai CLDC 1.1 ?

 

Memiliki error class yang bernama NoClassDefFoundError

   

Mengikut-sertakan method Object.finalize() dan Thread.interrupt()

   

Memiliki dukungan untuk floating point numbers dan weak references

   

Merupakan konfigurasi minimum yang dibutuhkan untuk spesifikasi JTWI

   

Java Community Process mengembangkannya sebagai JSR 135

   

6. Apakah tujuan utama penggunaan Anchor Point?

 

Menggambar teks

   

Merapikan teks yang digambar pada sebuah Canvas

   

Meminimalkan komputasi ketika meletakkan sebuah teks.

   

Memperindah tempilan teks.

   

Menentukan titik untuk memulai menggambar teks

   

7. Method manakah yang digunakan untuk melakukan update terhadap sebuah record dalam record store?

  addRecord();

   

recordChanged();

   

getRecord();

   

Page 5: A PC is able to reach devices that are located both inside and outside the network. However, when trying to reach an FTP server that is located on the same subnet, the PC fails to

setRecord();

   

8. Terdapat potongan kode MIDlet sebagai berikut.

Asumsikan bahwa jika kode tersebut lengkap, telah berhasil dikompile. Kalimat atau kata apakah yang akan muncul ketika MIDlet dijalankan?

 

Hello World

   

Alert

   

Hello JENI 2

   

Hello Dunia

   

Hello MIDlet

   

9. Perhatikan koneksi berikut :Connector.open("socket://1234") Interface manakah yang harus diimplementasikan dalam aplikasi untuk menggunakan koneksi tersebut?

  HttpsConnection

   

Page 6: A PC is able to reach devices that are located both inside and outside the network. However, when trying to reach an FTP server that is located on the same subnet, the PC fails to

SecureConnection

   

HttpConnection

   

ServerSocketConnection

   

10.

Dari baris kode berikut ini, manakah yang menunjukkan pengurutan secara descending?

 

   

   

Page 7: A PC is able to reach devices that are located both inside and outside the network. However, when trying to reach an FTP server that is located on the same subnet, the PC fails to

   

   

   

11.

Pada program berikut ini

Page 8: A PC is able to reach devices that are located both inside and outside the network. However, when trying to reach an FTP server that is located on the same subnet, the PC fails to

apa isi dari variabel a?

 

0

   

65535

   

255

   

null

   

100

   

12.

Mana sajakah yang termasuk method dari interface SecurityInfo ?

 

getProtocolVersion()

   

getCertificate()

   

getLocalPort()

   

getProtocolName()

   

Page 9: A PC is able to reach devices that are located both inside and outside the network. However, when trying to reach an FTP server that is located on the same subnet, the PC fails to

13.

Konfigurasi manakah yang dibutuhkan untuk konfigurasi minimum pada spesifikasi JTWI 1.0?

 

CLDC 1.0

   

CLDC 1.1

   

CDC

   

Tidak ada batasan konfigurasi minimum

   

Semua jawaban salah

   

14.

Metod mana yang digunakan untuk mendapatkan object dari kelas Font?

 

getFont()

   

setFont()

   

drawString()

   

getFace()

   

15.

Pada class Form, method yang digunakan untuk mendapatkan jumlah item yang ada dalam sebuah Form adalah..

  get

   

size

   

set

   

append

Page 10: A PC is able to reach devices that are located both inside and outside the network. However, when trying to reach an FTP server that is located on the same subnet, the PC fails to

   

getNumOfItem

   

16.

Manakah interface GCF berikut ini yang mendefinisikan ssl url scheme?

 

SecureConnection

   

DatagramConnection

   

HttpsConnection

   

HttpConnection

   

17.

Method mana sajakah yang dimiliki oleh RecordListener?

 

recordAdded();

   

recordChanged();

   

recordModified();

   

recordDeleted();

   

18.

Konstanta PRECEDES pada class RecordComparator memiliki nilai . . .

  -2

   

-1

   

0

   

Page 11: A PC is able to reach devices that are located both inside and outside the network. However, when trying to reach an FTP server that is located on the same subnet, the PC fails to

1

   

2

   

19.

Apakah nilai yang dikembalikan oleh method getRecordSize?

 

Jumlah record yang ada pada sebuah Record Store

   

Jumlah byte dari sebuah record

   

Jumlah record store yang dibuat pada sebuah MIDlet Suite

   

Semua jawaban salah

   

Jawaban a dan b benar

   

20.

Berikut ini class-class yang ada dalam package javax.microedition.io adalah..

 

Connection

   

HttpConnection

   

Connector

   

SocketConnection

   

PushRegistry

   

21.

Syntax mana yang digunakan untuk membuat sebuah interactive gauge?

Page 12: A PC is able to reach devices that are located both inside and outside the network. However, when trying to reach an FTP server that is located on the same subnet, the PC fails to

 

   

   

   

   

22.

Koordinat (0,0) pada Canvas terletak pada:

 

Tengah-tengah layar device

   

Kiri atas layar device

   

Kanan atas layar device

   

Kiri bawah layar device

   

Kanan bawah layar device

   

23.

Perhatikan kode berikut :

Syntax manakah yang tepat untuk menutup record store diatas?

 

someRS.closeRecordStore(RS1);

   

someRS.closeRecordStore();

   

someRS.close();

   

someRS.closed();

   

Page 13: A PC is able to reach devices that are located both inside and outside the network. However, when trying to reach an FTP server that is located on the same subnet, the PC fails to

24.

Seseorang ingin membuat field input untuk nomor telepon, manakah syntax yang tepat jika dia ingin field tersebut hanya dapat menerima angka dan panjang maksimalnya 10 karakter?

 

TextField("Phone ","",10,TextField.PHONE_NUMBER);

   

TextField("Phone ","",10,TextField.PHONENUMBER);

   

TextField("Phone ","",10,TextField.NUMBER);

   

TextField("Phone ","",10,TextField.NUMERIC);

   

25.

Elemen-elemen yang diletakkan pada Form disebut...

 

Items

   

Screens

   

Sprites

   

Elements

   

26.

Diberikan sebuah hirarki GCF pada CLDC 1.0/1.1.

1.ContentConnection

Page 14: A PC is able to reach devices that are located both inside and outside the network. However, when trying to reach an FTP server that is located on the same subnet, the PC fails to

2.Connector3.StreamConnectionNotifier4.StreamConnection5.HttpConnection6.Connection

Urutan yang benar untuk mengisi kotak yang kosong secara berurutan A,B,C,D adalah. . .

 

1 - 2 - 3 - 4

   

6 - 3 - 4 - 1

   

2 - 4 - 5 - 6

   

6 - 5 - 1 - 2

   

2 - 1 - 5 - 3

   

27.

Dibawah ini adalah konstanta untuk setting anchor untuk method "DrawString (string s,int x,int y,int anchor)":

 

LEFT

   

HCENTER

   

VCENTER

   

BOTTOM

   

TOP

   

28.

Koordinat (0,getHeigh()/2), sesuai dengan Sistem koordinat Canvas, jika diimplementasikan pada device dengan ukuran layar 128X128, maka terletak pada..

  Pojok atas

Page 15: A PC is able to reach devices that are located both inside and outside the network. However, when trying to reach an FTP server that is located on the same subnet, the PC fails to

   

Pojok kanan bawah

   

Kiri atas

   

Kiri bawah

   

Semua jawaban salah

   

29.

HttpConnection merupakan turunan dari ...[1] dan HttpsConnection merupakan turunan dari . . .[2]

 

[1] StreamConnection [2] ContentConnection

   

[1] ContentConnection [2] HttpConnection

   

[1] HttpsConnection [2] ContentConnection

   

[1] Connection [2] StreamConnection

   

[1] Connection [2] Connection

   

30.

Apakah fungsi dari method notifyDestroyed() pada class MIDlet?

  Memberikan sinyal atau memerintahkan MIDlet untuk berhenti dan masuk pada state Destroyed.

   

Memerintahkan MIDlet agar masuk pada ke state Paused.

   

Memberitahukan AMS bahwa MIDlet tidak aktif.

   Digunakan oleh sebuah MIDlet untuk memberitahukan AMS bahwa MIDlet telah masuk dalam state Destroyed.

   

Page 16: A PC is able to reach devices that are located both inside and outside the network. However, when trying to reach an FTP server that is located on the same subnet, the PC fails to

Menyediakan untuk MIDlet dengan sebuah mekanisme tertentu untuk mengindikasikan bahwa MIDlet tersebut akan masuk pada state Active

   

31.

Diberikan source code MIDlet sebagai berikut.

Page 17: A PC is able to reach devices that are located both inside and outside the network. However, when trying to reach an FTP server that is located on the same subnet, the PC fails to

Pada baris kode yang ditandai dengan //1, manakah parameter yang benar untuk menggantikan <parameter1> agar dihasilkan mode Tanggal Waktu?

 

1

   

2

   

3

   

DateField.DATETIME

   

DateField.TIME_DATE

   

DateField.DATE_TIME

   

32.

Apakah yang terjadi ketika method pauseApp() dipanggil?

 

Resource-resouce yang ada dibebaskan

   

MIDlet pada kondisi idle

   

MIDlet dihapus dari layer

   

Semua jawaban salah

   

Garbage collector dipanggil

   

33.

Dalam implementasinya pada Sun WTK, sebuah project MIDlet memiliki struktur direktori. Direktori apakah yang menyimpan informasi dari sebuah MIDlet?

  bin

   

src

   

lib

Page 18: A PC is able to reach devices that are located both inside and outside the network. However, when trying to reach an FTP server that is located on the same subnet, the PC fails to

   

classes

   

res

   

34.

Jenis Generic Connection mana yang bukan merupakan optional support dari MIDP 2.0 ?

 

HttpConnection

   

DatagramConnection

   

HttpsConnection

   

ServerSocketConnection

   

35.

Apakah kepanjangan dari LCDUI?

 

Liquid Crystal Display UI

   

Limited Connected Device UI

   

Keduanya benar

   

Keduanya salah