Soal Un Teori Kejuruan Rpl

Approved & Edited by ProProfs Editorial Team
The editorial team at ProProfs Quizzes consists of a select group of subject experts, trivia writers, and quiz masters who have authored over 10,000 quizzes taken by more than 100 million users. This team includes our in-house seasoned quiz moderators and subject matter experts. Our editorial experts, spread across the world, are rigorously trained using our comprehensive guidelines to ensure that you receive the highest quality quizzes.
Learn about Our Editorial Process
| By Catherine Halcomb
C
Catherine Halcomb
Community Contributor
Quizzes Created: 1428 | Total Attempts: 5,932,599
Questions: 40 | Attempts: 6,987

SettingsSettingsSettings
Soal Un Teori Kejuruan Rpl - Quiz

.


Questions and Answers
  • 1. 

    Suatu lab komputer akan dipasang 16 unit komputer dengan daya masing-masing komputer 250 watt. Jadi daya yang memenuhi persyaratan untuk laboratorium komputer tersebut adalah.... 

    • A.

      2 kW

    • B.

      3 kW

    • C.

      4 kW

    • D.

      5 kW

    • E.

      6 kW

    Correct Answer
    E. 6 kW
    Explanation
    The lab will have 16 computers, each with a power of 250 watts. To calculate the total power needed for the lab, we multiply the power of each computer (250 watts) by the number of computers (16). 250 watts x 16 computers = 4000 watts, which is equivalent to 4 kilowatts (kW). However, the closest option to this value is 6 kW, so that is the correct answer.

    Rate this question:

  • 2. 

    Ekivalen bilangan heksadesimal dengan bilangan heksadesimal 1FD(16) adalah....

    • A.

      0001 1111 1100(2)

    • B.

      1000 1111 1101(2)

    • C.

      1111 0000 1010(2)

    • D.

      1111 0000 1011(2)

    • E.

      1111 0001 1011(2)

    Correct Answer
    A. 0001 1111 1100(2)
    Explanation
    The equivalent hexadecimal number to hexadecimal number 1FD(16) is 0001 1111 1100(2) because it matches the given hexadecimal number.

    Rate this question:

  • 3. 

    Tes yang dilakukan oleh PC pada saat booting untuk mengecek apakah fungsi komponen pendukung PC bekerja dengan baik adalah.... 

    • A.

      BIOS

    • B.

      POST

    • C.

      login

    • D.

      Log out

    • E.

      config

    Correct Answer
    B. POST
    Explanation
    The correct answer is "POST". During the booting process, the PC performs a Power-On Self Test (POST) to check if all the supporting components of the PC are functioning properly. This test helps to identify any hardware issues that may prevent the computer from starting up successfully.

    Rate this question:

  • 4. 

     Urutan perintah untuk mengecek konektivitas pada jaringan adalah.... 

    • A.

      Run > ketik cmd > ketik ipconfig pada MS DOS prompt

    • B.

      Run > ketik cmd > ketik dir pada MS DOS prompt

    • C.

      Run > ketik cmd > ketik ifconfig pada MS DOS prompt

    • D.

      Run > ketik cmd > ketik ping [IP address] pada MS DOS prompt

    • E.

      Run > ketik msconfig

    Correct Answer
    D. Run > ketik cmd > ketik ping [IP address] pada MS DOS prompt
    Explanation
    The correct answer is "Run > ketik cmd > ketik ping [IP address] pada MS DOS prompt" because the command "ping" is used to check the connectivity between two devices on a network. By typing the IP address after the "ping" command, it sends a request to the specified IP address and waits for a response. If a response is received, it means that the device is connected and reachable. This command is commonly used to troubleshoot network connectivity issues.

    Rate this question:

  • 5. 

    Software yang berfungsi sebagai jembatan komunikasi antara komputer dengan device tertentu dengan kerja sistem yang maksimal adalah.... 

    • A.

      Driver

    • B.

      MS Office

    • C.

      Linux

    • D.

      Windows

    • E.

      Aplikasi

    Correct Answer
    A. Driver
    Explanation
    A driver is software that acts as a bridge between a computer and a specific device, allowing them to communicate effectively. It ensures that the device functions optimally by enabling the computer to understand and utilize its features. Without a driver, the computer may not be able to recognize or interact with the device properly, resulting in limited or inefficient functionality. Therefore, a driver is essential for achieving maximum system performance when connecting a computer to a specific device.

    Rate this question:

  • 6. 

    Berikut ini adalah algoritma menghitung luas segitiga yang sangat sederhana.  1) start  2) baca data alas dan tinggi  3) luas adalah alas kali tinggi kali 0,5  4) tampilkan luas  5) stop  Bila kita membuat pseudo code dengan bahasa BASIC menjadi....   

    • A.

      Print alas, tinggi luas = 0.5*alas*tinggi print luas

    • B.

      read alas, tinggi print alas, tinggi luas = 0.5*alas*tinggi print luas

    • C.

      Baca alas, tinggi luas = 0.5*alas*tinggi print luas stop

    • D.

      Baca alas, tinggi print luas = 0.5*alas*tinggi baca luas stop

    • E.

      Start print alas, tinggi luas = 0.5*alas*tinggi print luas

    Correct Answer
    B. read alas, tinggi print alas, tinggi luas = 0.5*alas*tinggi print luas
    Explanation
    The correct answer is "read alas, tinggi
    print alas, tinggi
    luas = 0.5*alas*tinggi
    print luas". This is the correct sequence of steps to calculate the area of a triangle. It starts by reading the values of the base (alas) and height (tinggi), then it prints these values. Next, it calculates the area by multiplying the base, height, and 0.5, and assigns it to the variable luas. Finally, it prints the value of luas, which is the area of the triangle.

    Rate this question:

  • 7. 

    Simbol siagram alir (flowchart) yang digunakan untuk mempersiapkan penyimpanan yang akan digunakan sebagai tempat pengolahan didalam storage adalah....   

    Correct Answer
    E.
    Explanation
    The correct answer for this question is "Data storage symbol". A flowchart is a visual representation of a process, and in this case, it is used to prepare the storage that will be used for processing data. The data storage symbol in a flowchart represents a location where data can be stored and accessed during the processing. This symbol typically looks like a rectangle with rounded corners. By using this symbol in the flowchart, it indicates that the process involves preparing the storage for data processing.

    Rate this question:

  • 8. 

    Syntax untuk menjalankan suatu pernyataan secara kondisional adalah.... 

    • A.

      If... do

    • B.

      While... do

    • C.

      If... then... do

    • D.

      if... then... while do

    • E.

      if... then... while...

    Correct Answer
    C. If... then... do
    Explanation
    The correct syntax for executing a statement conditionally is "if... then... do". This syntax is used to check a condition, and if it is true, then the specified action or block of code is executed.

    Rate this question:

  • 9. 

    Flow chart tersebut dengan alur “ya” merupakan bilangan.... 

    • A.

      Yang habis dengan pengurangan 11

    • B.

      Merupakan kelipatan 11

    • C.

      Inputannya harus 11

    • D.

      Hasil pembagian 11

    • E.

      Integer dari 11

    Correct Answer
    B. Merupakan kelipatan 11
    Explanation
    The correct answer is "Merupakan kelipatan 11." This is because the flow chart is indicating that the given number should be a multiple of 11. The flow chart is designed to check if a number is divisible by 11 by subtracting 11 from the input repeatedly until the number becomes zero or negative. If the number becomes zero, it means that the input is a multiple of 11. Therefore, the correct answer is that the flow chart represents numbers that are multiples of 11.

    Rate this question:

  • 10. 

    Untuk menampilkan isi halaman HTML dituliskan pada tag....

    • A.

    • B.

    • C.

    • D.

    • E.

    Correct Answer
    B.
    Explanation
    The correct answer is <body>. The <body> tag is used to define the main content of an HTML document. It contains all the visible content such as text, images, links, etc. The content within the <body> tag is what is displayed on the web page.

    Rate this question:

  • 11. 

    Program tag HTML untuk menggambar tabel  adalah....

    • A.

    • B.

      colspan=3>

    • C.

      colspan=3

    • D.

      colspan=3

    • E.

    Correct Answer
    E.
    Explanation
    The correct answer is . This is because the tag is used to create a table in HTML. The other options provided, such as colspan=3, do not represent HTML tags and are used for specifying the number of columns a cell should span in a table.

    Rate this question:

  • 12. 

    Tag <script></script> didalam file HTML biasanya merupakan client-side script. Bahasa pemrograman yang ditulis diantara tag <script> adalah....

    • A.

      VBA

    • B.

      VB Script

    • C.

      Java

    • D.

      JavaScript

    • E.

      VB.net

    Correct Answer
    D. JavaScript
    Explanation
    The correct answer for this question is JavaScript because the question states that the tag in an HTML file is usually used for client-side scripting. JavaScript is a widely used client-side scripting language that is commonly written between the tags in HTML files to add interactivity and dynamic functionality to web pages.

    Rate this question:

  • 13. 

    Untuk membuat table pada MS. Access menggunakan panduan langkah-langkah dapat dilakukan dengan fasilitas....

    • A.

      HTML

    • B.

      URL

    • C.

      FTP

    • D.

      SMTP

    • E.

      Hyperlink

    Correct Answer
    E. Hyperlink
    Explanation
    To create a table in MS Access using step-by-step instructions, the appropriate facility to use is a hyperlink. This suggests that the process involves linking or connecting different elements or steps together, which is a common feature of hyperlinks. The other options listed (HTML, URL, FTP, SMTP) do not directly relate to creating a table in MS Access.

    Rate this question:

  • 14. 

    Untuk membuat table pada MSAccess menggunakan panduan perintah dapat dilakukan dengan fasilitas....

    • A.

      Query from table

    • B.

      Create table using wizard

    • C.

      Create table using view

    • D.

      insert table

    • E.

      linking

    Correct Answer
    B. Create table using wizard
    Explanation
    To create a table in MS Access, one can use the wizard feature provided by the software. The wizard guides the user through the process of creating a table by providing step-by-step instructions and options to define the table structure, field names, data types, and other properties. This makes it easier for users who are not familiar with the database design process to create tables efficiently.

    Rate this question:

  • 15. 

     Fungsi sintax UNION digunakan untuk menghubungkan....

    • A.

      antara field yang satu dengan field yang lain

    • B.

      Antara tabel yang satu dengan tabel yang lain

    • C.

      Antara record yang satu dengan record yang lain

    • D.

      type data yang satu dengan type data yang lain

    • E.

      antara database yang satu dengan database yang lain

    Correct Answer
    B. Antara tabel yang satu dengan tabel yang lain
    Explanation
    The correct answer is "antara tabel yang satu dengan tabel yang lain." The UNION syntax function is used to combine the result sets of two or more SELECT statements into a single result set. In this case, it is specifically used to connect tables together, allowing for the combination of data from different tables into one result set.

    Rate this question:

  • 16. 

    Untuk membuat form pada MS. Access menggunakan panduan langkah demi langkah dapat menggunakan fasilitas....

    • A.

      Linking

    • B.

      insert table

    • C.

      query from table

    • D.

      Create form by using wizard

    • E.

      Create form by design view

    Correct Answer
    D. Create form by using wizard
    Explanation
    The correct answer is "create form by using wizard". This option allows users to easily create a form in MS Access by following a step-by-step guide. The wizard provides a user-friendly interface and prompts the user to select the desired table and fields to include in the form. It simplifies the process of form creation by automating many of the steps involved.

    Rate this question:

  • 17. 

    Perintah untuk menampilkan data siswa dari tabel siswa yang terdiri dari field N I S, nama siswa, dan tanggal lahir dengan urutan siswa yang tertua, adalah....

    • A.

      insert into siswa values NIS, nama_siswa, tanggal_lahir

    • B.

      Select NIS, nama_siswa, tanggal_lahir from siswa order by tanggal_lahir descending

    • C.

      select NIS, nama_siswa, tanggal_lahir from siswa order by tanggal_lahir ascending

    • D.

      Select NIS, namasiswa.tanggal_lahir siswa

    • E.

      select NIS, nama_siswa, tanggal_lahir from group by tanggal_lahir order by tanggal_lahir

    Correct Answer
    C. select NIS, nama_siswa, tanggal_lahir from siswa order by tanggal_lahir ascending
    Explanation
    The correct answer is "select NIS, nama_siswa, tanggal_lahir from siswa order by tanggal_lahir ascending". This query selects the NIS, nama_siswa, and tanggal_lahir fields from the siswa table and orders the results in ascending order based on the tanggal_lahir field. This will display the data of the students in the table in the order of the oldest student first.

    Rate this question:

  • 18. 

    Untuk mengkoneksikan data base dalam aplikasi visual basic 6.0. menggunakan komponen....

    • A.

      Stdio.sh

    • B.

      Stdu6.h

    • C.

      conio.h

    • D.

      ADODB

    • E.

      MATH

    Correct Answer
    D. ADODB
    Explanation
    The correct answer is ADODB. ADODB stands for ActiveX Data Objects Database. It is a component used to connect and manipulate databases in Visual Basic 6.0. ADODB provides a set of objects and methods that allow easy access to various database systems, such as Microsoft Access, SQL Server, and Oracle. It simplifies the process of connecting to a database, executing queries, and retrieving or updating data.

    Rate this question:

  • 19. 

     Pernyataan koneksi basis data pada program aplikasi menggunakan....

    • A.

      Stdio.sh

    • B.

      Stdlib.h

    • C.

      Conio.h

    • D.

      Biblio.mdb

    • E.

      Stdio.mdb

    Correct Answer
    D. Biblio.mdb
    Explanation
    The correct answer is "biblio.mdb". This is because "mdb" is a file extension commonly used for Microsoft Access databases, and "biblio" suggests that this database contains bibliographic information. Therefore, it is likely that the program application connects to the "biblio.mdb" database to retrieve or store data.

    Rate this question:

  • 20. 

    Agar menjadi file executable yang mandiri (stand alone) pada kode program haruslah dilakukan proses....

    • A.

      Debugging

    • B.

      Deklarasi

    • C.

      Playing

    • D.

      Kompilasi

    • E.

      Running

    Correct Answer
    D. Kompilasi
    Explanation
    The correct answer is "kompilasi". In order for a code program to become a standalone executable file, it needs to go through the process of compilation. Compilation is the process of translating the source code into machine code that can be understood and executed by the computer. This process involves checking for syntax errors, converting the code into a lower-level language, and generating an executable file.

    Rate this question:

  • 21. 

    Perintah SQL untuk menambah kolom baru pada posisi awal table adalah....

    • A.

      ALTER TABLE [table] ADD [field]

    • B.

      ALTER ADD [field]

    • C.

      INSERT TABLE [table] ADD [field]

    • D.

      ALTER [table] ADD [field]

    • E.

      INSERT TABLE [table]

    Correct Answer
    A. ALTER TABLE [table] ADD [field]
    Explanation
    The correct answer is "ALTER TABLE [table] ADD [field]". This SQL command is used to add a new column to a table. The "ALTER TABLE" keyword is used to modify the structure of the table, "ADD" is used to specify that a new column is being added, "[table]" is the name of the table to which the column is being added, and "[field]" is the name of the new column.

    Rate this question:

  • 22. 

    Perintah SQL untuk membuat index baru yang unik dengan nama indeks_siswa adalah....

    • A.

      CREATE INDEX indeks_siswa ON siswa (nama)

    • B.

      CREATE UNIQUE INDEX indeks_siswa ON siswa (nama)

    • C.

      CREATE INDEX WITH indeks_siswa ON siswa (nama)

    • D.

      CREATE UNIQUE INDEX WITH indeks_siswa ON siswa (nama)

    • E.

      CREATE INDEX WITH INDEX SISWA

    Correct Answer
    A. CREATE INDEX indeks_siswa ON siswa (nama)
    Explanation
    The correct answer is "CREATE INDEX indeks_siswa ON siswa (nama)". This SQL command creates a new index named "indeks_siswa" on the table "siswa" with the column "nama". It does not specify the uniqueness of the index, so it can contain duplicate values.

    Rate this question:

  • 23. 

    Obyek yang bekerja bersama sebuah tabel dan digunakan untuk memeriksa sebuah operasi atau kejadian tertentu pada suatu tabel disebut....

    • A.

      FUNCTION

    • B.

      PROCEDURE

    • C.

      TRIGGER

    • D.

      OBJECT

    • E.

      UNION

    Correct Answer
    C. TRIGGER
    Explanation
    A trigger is an object that works together with a table and is used to check a specific operation or event on a table. Triggers are commonly used in databases to enforce data integrity or perform certain actions when certain events occur, such as inserting, updating, or deleting data in a table. They can be programmed to automatically execute a set of actions in response to specific events, providing a way to enforce business rules or perform complex calculations.

    Rate this question:

  • 24. 

    Perintah untuk memanggil file dalam PHP, misalnya akan memanggil file config.php yang ada pada folder common....  

    • A.

      ;

    • B.

      include("/common/config.php");

    • C.

      Class = "/common/config.php";

    • D.

      calling("/common/config.php");

    • E.

    Correct Answer
    B. include("/common/config.php");
    Explanation
    The correct answer is "include("/common/config.php");". This is because the include() function in PHP is used to include and evaluate the specified file. In this case, the file being called is "config.php" which is located in the "common" folder. The correct syntax for including a file is to use the include keyword followed by the file path in quotation marks.

    Rate this question:

  • 25. 

     Untuk keamanan transportasi pada ketika up load maupun download diperlukan....  

    • A.

      Gateway

    • B.

      NAT

    • C.

       firewall

    • D.

      Router

    • E.

      Secure Socket Layer

    Correct Answer
    C.  firewall
    Explanation
    A firewall is necessary for the security of transportation during both upload and download processes. Firewalls act as a barrier between a secure internal network and the external untrusted network, filtering incoming and outgoing network traffic based on predetermined security rules. By monitoring and controlling network traffic, firewalls help prevent unauthorized access, protect against malicious attacks, and ensure the confidentiality, integrity, and availability of data. Therefore, a firewall is an essential component for maintaining the security of transportation during upload and download processes.

    Rate this question:

  • 26. 

    Perintah untuk mengakhiri pemrograman dengan PHP adalah dengan tanda....  

    • A.

      ​​​​​​​[]

    • B.

    • C.

      ?>

    • D.

      {}

    • E.

      /

    Correct Answer
    C. ?>
    Explanation
    The correct answer is ">". In PHP, the closing tag to end a block of PHP code is "?>". This is used to indicate the end of the PHP script and return to HTML or other non-PHP code.

    Rate this question:

  • 27. 

    Function IsiSingkat($isi){ $isiaingkat = ""; $isi1 = substr($isi,0,500); $isi1 = explode(" ",substr($isi,500,100)); $isi = $isi1.$isi2[0]."..."; $isisingkat = $isi; return $isisingkat; } Fungsi Isi Singkat ( ) diatas merupakan script PHP yang berfungsi untuk....  

    • A.

      mengambil data teks sebanak 500 karakter plus beberapa karakter hingga bertemu spasi

    • B.

      Mengambil data berita kemudian menjabarkannya sebanyak 600 kaarkter

    • C.

      Menampilkan data teks sebanyak 500 karakter

    • D.

      Mengambil data sebanyak 500 karakter

    • E.

      Mengambil data dan menampilkan data sebanyak 500 karakter

    • F.

      Mengambil data dan menampilkan data sebanyak 500 karakter

    Correct Answer
    A. mengambil data teks sebanak 500 karakter plus beberapa karakter hingga bertemu spasi
    Explanation
    The function "IsiSingkat" in the given code is designed to take a text input and shorten it to a maximum of 500 characters, including some additional characters until it reaches a space. This means that it will extract the first 500 characters of the input string, and if there are additional characters after the 500th character until the next space, those will also be included in the shortened version. Therefore, the correct answer is "mengambil data teks sebanak 500 karakter plus beberapa karakter hingga bertemu spasi".

    Rate this question:

  • 28. 

    Tipe data yang mempunyai dua kemungkinan dipemrograman Java adalah....  

    • A.

       Char

    • B.

      Short

    • C.

      Boolean

    • D.

      Float

    • E.

       int

    Correct Answer
    C. Boolean
    Explanation
    Boolean is a data type in Java that represents two possible values: true or false. It is used to store logical values and is commonly used for decision-making in programming. In Java, the boolean data type is used to control the flow of statements and to determine whether a certain condition is true or false. It is often used in conditional statements, loops, and boolean expressions.

    Rate this question:

  • 29. 

    Berikut adalah beberapa script program OOP menggunakan class, yang benar sesuai kaidah adalah....   

    • A.

      Class personil{ String nip; String nama; String alamat; String usia; }

    • B.

      Class personil{ nip; nama; alamat; usia; }

    • C.

      Class personil{ String nip; String nama; String alamat; String usia; }

    • D.

      Class personil(){ String nip; String nama; String alamat; String usia; }

    • E.

      Class personil{ int nama, String nip, float usia; }

    Correct Answer
    A. Class personil{ String nip; String nama; String alamat; String usia; }
    Explanation
    The correct answer is the first option: class personil{
    String nip;
    String nama;
    String alamat;
    String usia;
    }

    This is the correct format for declaring a class in object-oriented programming (OOP). Each variable is declared on a separate line and is given a specific data type. In this case, the variables nip, nama, alamat, and usia are all declared as strings. This format follows the standard conventions for readability and maintainability in OOP.

    Rate this question:

  • 30. 

    Memberi komentar dua baris pada program Java menggunakan tanda....  

    • A.

      **

    • B.

      [[

    • C.

      /*

    • D.

      -

    • E.

      //

    Correct Answer
    C. /*
    Explanation
    The correct answer is /*. This is because in Java, the /* symbol is used to start a multi-line comment. This means that anything between /* and */ will be ignored by the compiler and will not be executed as part of the program. This is useful for adding comments or explanations to the code without affecting its functionality.

    Rate this question:

  • 31. 

    Menyembunyikan detail dari sebah class terhadap obyek adalah....  

    • A.

      Manipulasi

    • B.

      Enkapsulasi

    • C.

      Abstraksi

    • D.

      Masking

    • E.

      Polymorphism

    Correct Answer
    B. Enkapsulasi
    Explanation
    Enkapsulasi adalah proses menyembunyikan detail dari sebuah class terhadap objek. Dalam enkapsulasi, data dan metode yang terkait dengan objek dikemas bersama dan diakses melalui metode-metode yang ditentukan. Hal ini dilakukan untuk melindungi data dari akses langsung dan memastikan bahwa data hanya dapat diubah melalui metode-metode yang telah ditentukan. Dengan demikian, enkapsulasi membantu dalam menjaga keamanan dan integritas data serta mempermudah perubahan implementasi di masa depan.

    Rate this question:

  • 32. 

    Perintah untuk mengontrol aliran program pada pemrograman obyek berbasis Java adalah....  

    • A.

      Loop

    • B.

      Link

    • C.

      Flow

    • D.

      Thread

    • E.

      Multi threading

    Correct Answer
    D. Thread
    Explanation
    The correct answer is "thread". In object-oriented programming, a thread is a sequence of instructions that can be executed independently of other code. Threads allow for concurrent execution of multiple tasks within a program, enabling efficient use of system resources and improving overall performance. By using threads, developers can control the flow of program execution and manage multiple operations simultaneously.

    Rate this question:

  • 33. 

    Dari program berikut ini yang termasuk pointer adalah.... int main(){ long *Alamat; long *Alamat1; Alamat = NULL; cout<<"Alamat memori yang ditunjuk dengan NULL"<<Alamat<<endl; cout<<"Alamat memori yang ditunjuk tanpa NULL"<<Alamat<<endl; return 0; }  

    • A.

      Alamat = null; long*alamat;

    • B.

      long*alamat; long*alamat;

    • C.

      Int main()

    • D.

      Return();

    • E.

      Alamat+null; long*Alamat; long alamat;

    Correct Answer
    B. long*alamat; long*alamat;
    Explanation
    The correct answer is "long*alamat; long*alamat;". This is because in the given program, two variables "Alamat" and "Alamat1" are declared as pointers to a long data type. Pointers are variables that store memory addresses. In this case, both "Alamat" and "Alamat1" are declared as pointers without any specific memory address assigned to them. So, they are initialized with NULL, which represents a null pointer that does not point to any valid memory address. The program then prints the value of "Alamat" twice, once with the NULL value and once without it.

    Rate this question:

  • 34. 

    Dari program berikut class Persegi Panjang mempunyai variabel anggota yaitu.... class Persegi Panjang{int x, ; public; vois set_nilai (int,int); int luas() {return (x*);}}; void PersegiPanjang::set_nilai (int a, int b){ x = a; y = b; } int main(){ PersegiPanjang pp1, pp2; pp1.set_nilai(3,4); pp2.set_nilai(7,12); cout<<"Luas pp1:"<<pp1.luas()<<endl; cout<<"Luas pp2:"<<pp2.luas()<<endl; return 0; }  

    • A.

      Set_nilai()

    • B.

      Luas pp1, luaspp2

    • C.

      Pp1.set_nilai(), pp2.set_nilai();

    • D.

      X dan y

    • E.

      x = a  = b

    Correct Answer
    D. X dan y
    Explanation
    The correct answer is x dan y. In the given program, the class Persegi Panjang has two member variables, x and y. These variables are used in the set_nilai() function to set the values of x and y. The luas() function calculates the area of the rectangle using the value of x. In the main function, the set_nilai() function is called for objects pp1 and pp2 to set the values of x and y. Finally, the luas() function is called for pp1 and pp2 to calculate and display their respective areas.

    Rate this question:

  • 35. 

    Perintah SQL yang berfungsi untuk memperbaharui atau mengubah sebuah data dalam table adalah....  

    • A.

      MODIFY

    • B.

      ALTER

    • C.

      RENAME

    • D.

      UPDATE

    • E.

      JOIN

    Correct Answer
    D. UPDATE
    Explanation
    The correct answer is UPDATE. The UPDATE command in SQL is used to modify or change existing data in a table. It allows you to update specific columns or rows in a table based on certain conditions. This command is essential for making changes to data in a database without having to delete and re-insert the entire record.

    Rate this question:

  • 36. 

    Suatu variabel x="1970010011995022001". Karakter ke-15 dari variabel x menunjukkan gender seseorang. Untuk mendapatkan karakter tersebut dalam SQL procedure menggunakan perintah....  

    • A.

      Left(x,15)

    • B.

      Right(x,15)

    • C.

      Right(x,4)

    • D.

      Mid(x,15,1)

    • E.

      Mid(x,15,2)

    Correct Answer
    D. Mid(x,15,1)
    Explanation
    The given variable x contains a string of characters "1970010011995022001". The question asks for the 15th character of the variable, which represents the gender of a person. The SQL procedure command "mid(x,15,1)" will extract a substring from the variable x starting from the 15th character and with a length of 1 character, which will give us the desired gender character.

    Rate this question:

  • 37. 

    Koneksi antar table biasa disebut dengan....  

    • A.

       Relation

    • B.

      Record

    • C.

      Connection

    • D.

       link

    • E.

      Field

    Correct Answer
    A.  Relation
    Explanation
    The correct answer is "Relation". In database management systems, the connection between tables is commonly referred to as a relation. This refers to the way the tables are linked or related to each other through common fields or keys. The relation allows for the retrieval and manipulation of data across multiple tables, enabling efficient data management and analysis.

    Rate this question:

  • 38. 

    Perintah SQL untuk menambahkan data yang datanya sebagian diambil dari table lain adalah....  

    • A.

      insert into siswa select*from siswa 1 where tgl_in>"2002-01-02";

    • B.

      insert siswa select*from siswa 1 where tgl_in>"2002-01-02";

    • C.

      insert into siswa values select*from siswa 1 where tgl_in>"2002-01-02";

    • D.

      Insert siswa values select*from siswa 1 where tgl_in>"2002-01-02";

    • E.

      insert siswa () select*from siswa 1 where tgl_in>"2002-01-02";

    Correct Answer
    C. insert into siswa values select*from siswa 1 where tgl_in>"2002-01-02";
    Explanation
    The correct answer is "insert into siswa values select*from siswa 1 where tgl_in>"2002-01-02";". This SQL command is used to insert data into the table "siswa" by selecting data from the same table where the "tgl_in" column is greater than "2002-01-02". The "insert into" statement is used to specify the table name and the "values select*from" statement is used to select the data to be inserted.

    Rate this question:

  • 39. 

    Script system.out.println ("hasil akar pangkat 3="+a). Script ini merupakan perintah dasar....  

    • A.

      VB.net

    • B.

      Delphi

    • C.

      Pascal

    • D.

      PHP

    • E.

      Java

    Correct Answer
    E. Java
    Explanation
    The given script is written in the Java programming language. The "system.out.println" command is used to print the result of the calculation, which is the cube root of a number. Java is a widely used programming language that is known for its versatility and platform independence. It is commonly used for developing various applications and software.

    Rate this question:

  • 40. 

    Pada setting jaringan di MS Windows, setting default gateway menentukan … 

    • A.

      IP address komputer/perangkat jaringan yang menjadi gerbang ke jaringan lain

    • B.

      IP address komputer yang menyediakan layanan konversi domain ke IP address

    • C.

      Komputer/perangkat di jaringan yang menyediakan setting IP secara otomatis

    • D.

      IP address komputer/perangkat jaringan yang menyediakan layanan web

    • E.

      IP address yang diberikan oleh DHCP server kepada komputer kita

    Correct Answer
    A. IP address komputer/perangkat jaringan yang menjadi gerbang ke jaringan lain
    Explanation
    The default gateway setting in MS Windows determines the IP address of the computer/network device that serves as the gateway to other networks. This means that the default gateway is responsible for routing network traffic between different networks, allowing devices to communicate with each other.

    Rate this question:

Quiz Review Timeline +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Mar 22, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • Feb 18, 2018
    Quiz Created by
    Catherine Halcomb
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.