Anda di halaman 1dari 4

KUIS MODUL 10 IT-45-04: Attempt review 03/05/23 17.

03

Praktikum Sistem Operasi S1 Teknologi Informasi


Dashboard / My courses / PRAK-232-OS-TI / 10 - Shell / KUIS MODUL 10 IT-45-04

Started on Wednesday, 3 May 2023, 5:01 PM

State Finished

Completed on Wednesday, 3 May 2023, 5:03 PM

Time taken 2 mins 1 sec

Grade 10.00 out of 10.00 (100%)

Question 1
Apakah arti dari kode: if (nargs !=4){printf("hello")}?
Correct

Mark 1.00 out of 1.00 Select one:

a. jika banyaknya argument pada perintah tidak sama dengan 4 maka 


print "hello"

b. jika perintah adalah hello maka jalankan perintah

c. jika banyaknya argument pada perintah sama dengan 4 maka print "hello"

d. jika perintah adalah hello maka print "hello"

The correct answer is: jika banyaknya argument pada perintah tidak sama
dengan 4 maka print "hello"

Question 2
Diketahui suatu perintah dengan format "xxxx 192.168.0.1". Nama perintah yang
Correct dieksekusi dan argument yang diberikan pada perintah tersebut adalah
Mark 1.00 out of 1.00
Select one:

a. 192.168.0.1; 192.168.0.1

b. xxxx, xxxx

c. 192.168.0.1; xxxx

d. xxxx; 192.168.0.1 

The correct answer is: xxxx; 192.168.0.1

Question 3
Diketahui telah ditambahkan entri pada shell.c dengan isian{"xxx", FALSE, xsh_xxx}.
Correct Apa nama perintah baru yang dibuat?
Mark 1.00 out of 1.00
Select one:

https://lms.telkomuniversity.ac.id/mod/quiz/review.php?attempt=6823452&cmid=3136498 Halaman 1 dari 4


KUIS MODUL 10 IT-45-04: Attempt review 03/05/23 17.03

a. tidak bisa ditentukan

b. FALSE

c. xsh_xxx

d. xxx 

The correct answer is: xxx

Question 4
Diketahui telah ditambahkan entri pada shell.c dengan isian{"xxx", FALSE, xsh_xxx}.
Correct Apa nama source code perintah baru yang dibuat?
Mark 1.00 out of 1.00
Select one:

a. tidak bisa ditentukan

b. FALSE

c. xxx

d. xsh_xxx.c 

The correct answer is: xsh_xxx.c

Question 5
Jika ingin menambahkan perintah baru pada Xinu langkah pertama yang
Correct dilakukan adalah
Mark 1.00 out of 1.00
Select one:

a. edit shell.c dan menambahkan nama command pada file tersebut 

b. buat source code perintah yang akan ditambahkan

c. edit shprotoype.h dan menambahkan nama command pada file tersebut

d. lakukan compile

The correct answer is: edit shell.c dan menambahkan nama command pada file
tersebut

Question 6
Pada Xinu, source code shell berada pada file
Correct

Mark 1.00 out of 1.00 Select one:

a. ./system/shell.c

b. ./system/shell.h

c. ./shell/shell.c 

d. ./shell/shell.h

The correct answer is: ./shell/shell.c

Question 7

https://lms.telkomuniversity.ac.id/mod/quiz/review.php?attempt=6823452&cmid=3136498 Halaman 2 dari 4


KUIS MODUL 10 IT-45-04: Attempt review 03/05/23 17.03

Question 7
Perintah-perintah yang dapat dijalankan pada shell di Xinu, file executablenya
Correct berada di mana?
Mark 1.00 out of 1.00
Select one:

a. folder /bin/

b. image xinu 

c. harddisk

d. folder /exe/

The correct answer is: image xinu

Question 8
Source code perintah baru yang akan dibuat ditaruh pada folder apa?
Correct

Mark 1.00 out of 1.00 Select one:

a. xinu/system

b. xinu/shell 

c. xinu/cmd

d. xinu/xinu

The correct answer is: xinu/shell

Question 9
Suatu program yang akan menginterpretasi perintah yang diberikan oleh user,
Correct menjalankan perintah tersebut dalam terminal disebut
Mark 1.00 out of 1.00
Select one:

a. fungsi

b. proses

c. os

d. shell 

The correct answer is: shell

Question 10
Untuk menampilkan bantuan kepada user ketika user mengetikkan perintah "cmd -
Correct -help" maka dapat programmer dapat menambahkan informasi dengan printf
Mark 1.00 out of 1.00 pada blok kode ...

Select one:

a. if (nargs == "--help")

b. if (nargs == 2 && strncmp(args[1],"--help",7) == 0) 

c. if (nargs != "--help")

d. if (nargs !=2)

https://lms.telkomuniversity.ac.id/mod/quiz/review.php?attempt=6823452&cmid=3136498 Halaman 3 dari 4


KUIS MODUL 10 IT-45-04: Attempt review 03/05/23 17.03

The correct answer is: if (nargs == 2 && strncmp(args[1],"--help",7) ==


0)

Previous Activity Jump to...

https://lms.telkomuniversity.ac.id/mod/quiz/review.php?attempt=6823452&cmid=3136498 Halaman 4 dari 4

Anda mungkin juga menyukai