Jawaban - (Java Tech Test) - Multiple Choice & Query-SALT
Jawaban - (Java Tech Test) - Multiple Choice & Query-SALT
2. A method that can be executed automatically when an object of a class is created is known
as..
a. Constructor
b. Initializer
c. Garbage Collector
d. Inheritance
3. The term to protect data from attempts to modify, destroy and duplicate data by
unauthorized parties is..
a. Inheritance
b. Polymorphisme
c. Constructor
d. Encapsulation
7. The keyword used to make the value fixed and immutable is…
a. Protected
b. Private
c. Public
d. Final
8. The method used to convert all letters in a string to uppercase / capital is
a. UpperCase()
b. toUperCase()
c. toUpperCase()
d. isUpperCase()
a. 0
b. 1
c. 2
d. 3
a. 25
b. 26
c. Runtime error
d. Compile error
13. There is something wrong with the code. How to fix it?
public class Test6 {
public String var = " world";
public static void main(String args[]) {
System.out.println("Hello" + var);
a. System.out.println("Hello" + Test6.var);
b. System.out.println("Hello" + this.var);
c. public static String var = " world";
d. public final String var = " world";
} else if (n > 1) {
} else {
return -1;
a. 5
b. 6
c. 8
d. -1
a. CDEKLMN
b. DEFGHIJKLMN
c. CDEFKLMN
d. DEFGKLMN
Please create a query to answer questions number 16 – 19 based on the table below:
nik nama alamat kota provinsi pulau total_pembelian_2017 total_pembelian_2018 point tgl_regis
3276001 Ahmad Jl. Telaga No 3 Bandar Lampung Sumatra 984.000,00 430.000,00 7070 14-Nov-17
Lampung
3276002 Saiful Jl. Cendrawasih Batam Kepulauan Riau Batam 265.000,00 684.000,00 4745 12-Apr-17
Ahmad
3276003 Lina Jl. Mawar Makassar Sulawesi Sulawesi 902.000,00 883.000,00 8925 22-Sep-17
Selatan
3276004 Erni Jl. Cut Nyak Pontianak Kalimantan Kalimantan 384.000,00 377.000,00 3805 30-Oct-16
Dien Barat
3276005 Anto Jl. Kamboja Jakarta DKI Jakarta Jawa 561.000,00 293.000,00 4270 20-Apr-17
Barat
3276007 Maya Jl. Anoa Batam Kepulauan Riau Batam 679.000,00 746.000,00 7125 9-Aug-16
3276008 Hadi Jl. Hiu Jakarta DKI Jakarta Jawa 239.000,00 987.000,00 6130 8-Apr-16
Barat
16. Sort customer data based on the highest point to the lowest point
17. Show all data with customer names containing the word Ahmad
18. Show for the NIK and Name of the Customer who made the 3rd most total purchases in
the last 2 years
19. Show total customer purchases outside Java throughout 2017
16.
17.
18.
FROM PUBLIC.TABLE_NAME
LIMIT 3
19.
FROM TABLE_NAME