Os2 PrVI KolokVIjum VIŠer

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Nikolastosevski
N
Nikolastosevski
Community Contributor
Quizzes Created: 1 | Total Attempts: 1,347
| Attempts: 1,347
SettingsSettings
Please wait...
  • 1/189 Pitanja

    Linux distribuciju čine: Izaberite jedan odgovor:

    • Isključivo kernel
    • Linux kernel, sistemski softver, korisničkih aplikacija i sotfver za instalaciju
    • Isključivo sistemski sotfver
    • Isključivo  korisničke aplikacije
Please wait...


Quiz Preview

  • 2. 

    Deskriptor datoteke koji ima vrednost 2 predstavlja: Izaberite jedan odgovor:

    • Stdout (standardni izlaz)

    • Ne znam

    • Stderr (standardni izlaz za greške)

    • Stdin (standardni ulaz)

    Correct Answer
    A. Stderr (standardni izlaz za greške)
    Explanation
    The correct answer is stderr (standardni izlaz za greške). This descriptor represents the standard output for errors.

    Rate this question:

  • 3. 

    Lunux kernel je modularan: Izaberite jedan odgovor:

    • Ne

    • Da

    Correct Answer
    A. Da
    Explanation
    The correct answer is "da" (yes). The explanation for this is that the Linux kernel is indeed modular. This means that it is designed in a way that allows for the addition or removal of specific functionalities through the use of loadable kernel modules. These modules can be dynamically loaded and unloaded without the need to restart the entire system, providing flexibility and allowing for customization based on specific requirements.

    Rate this question:

  • 4. 

    Sistemski poziv read ima sintaksu number = read (fd, buffer, count) pri čemu je parametar buffer: Izaberite jedan odgovor:

    • Samo ime datoteke

    • Deskriptor datoteke koje se dobija od sitstemkog poziva open

    • Adresu memorijskog bafera koje je proces dobio za čitanje

    • Blok datoteke na disku

    • Puno ime datoteke sa svim granama

    Correct Answer
    A. Adresu memorijskog bafera koje je proces dobio za čitanje
    Explanation
    The parameter "buffer" in the read system call syntax is the memory address of the buffer that the process has received for reading.

    Rate this question:

  • 5. 

    Operator za blok primitive < predstavlja: Izaberite jedan odgovor:

    • Ne znam

    • Redirekciju ulaza

    • Redirekciju izlaza

    • Redirekciju standardnog izlaza za greške

    Correct Answer
    A. Redirekciju ulaza
    Explanation
    The correct answer is "redirekciju ulaza." The "<" operator is used for input redirection in programming. It allows the program to take input from a file or another source instead of the standard input. This can be useful when the program needs to read data from a specific file or when automating input from another program.

    Rate this question:

  • 6. 

    UNIX je pre svega: Izaberite jedan odgovor:

    • Single‐task, single user OS

    • Single‐task, multi user OS

    • Multi‐task, multi user OS

    • Ne znam

    • Multi‐task, single user OS

    Correct Answer
    A. Multi‐task, multi user OS
    Explanation
    UNIX is a multi-task, multi-user operating system. This means that it is capable of running multiple tasks or processes simultaneously, allowing users to execute multiple programs or commands at the same time. Additionally, it supports multiple users accessing the system concurrently, enabling them to share resources and work on different tasks simultaneously.

    Rate this question:

  • 7. 

    OS UNIX se piše na: Izaberite jedan odgovor:

    • Ne znam

    • Visokom programskom jeziku

    • Assembleru

    • Mašinskom jeziku

    Correct Answer
    A. Visokom programskom jeziku
    Explanation
    The correct answer is "visokom programskom jeziku" which translates to "high-level programming language" in English. This suggests that the operating system UNIX is written in a high-level programming language rather than in assembler or machine language.

    Rate this question:

  • 8. 

    U arhitekturi UNIX operativnog sistema sa 3 nivoa, prvi i najniži nivo predstavlja: Izaberite jedan odgovor:

    • Hardverski nivo

    • Ne znam

    • Kernelski nivo

    • Mrežni nivo

    • Korisnički nivo

    Correct Answer
    A. Hardverski nivo
    Explanation
    In the architecture of a UNIX operating system with 3 levels, the first and lowest level represents the hardware level. This means that at this level, the operating system interacts directly with the hardware components of the computer, such as the processor, memory, and input/output devices. The hardware level is responsible for managing and controlling the physical resources of the computer.

    Rate this question:

  • 9. 

    Linux je OS sa: Izaberite jedan odgovor:

    • Komercijalan je bez otvorenog izvornog koda i plaća se

    • Otvorenim izvornim kodom i uglavnom je besplatan

    • Komercijalan je bez otvorenog izvornog koda i ne naplaćaje se

    • Otvorenim izvornim kodom i uglavnom se naplaćuje

    Correct Answer
    A. Otvorenim izvornim kodom i uglavnom je besplatan
    Explanation
    The correct answer is "otvorenim izvornim kodom i uglavnom je besplatan" which means "it is open source and mostly free". This means that Linux is a operating system that allows users to access and modify its source code freely, and it is generally available to use without any cost.

    Rate this question:

  • 10. 

    Za alokaciju i pronalaženje blokova u kešu koristi se hash algoritam. Matematička funkcija koja se najčešće koristi za ovaj algoritam, kod baferskog keša je: Izaberite jedan odgovor:

    • Bouble sort

    • Devijacija

    • Moduo

    • Koren

    Correct Answer
    A. Moduo
    Explanation
    The correct answer is "moduo". In the context of cache allocation and block retrieval, a hash algorithm is used. The most commonly used mathematical function for this algorithm in cache is the modulus operator (%), which calculates the remainder of a division operation. This function helps in distributing the data evenly across the cache blocks by mapping the memory addresses to specific cache locations.

    Rate this question:

  • 11. 

    Za baferski keš važe pravila: Izaberite jedan odgovor:

    • To je korisnička memorija i nije vidljiva za programera

    • To je korisnička memorija i vidljiva je za programera

    • To je kernelska memorija i vidljiva je za programera

    • To je kernelska memorija i nije vidljiva za programera

    Correct Answer
    A. To je kernelska memorija i nije vidljiva za programera
    Explanation
    Za baferski keš važe pravila: to je kernelska memorija i nije vidljiva za programera. This statement means that the buffer cache is a type of memory called "kernelska memorija" and it is not visible to the programmer.

    Rate this question:

  • 12. 

    U komandi $ls /etc rezultat listanja direktorijuma ide na: Izaberite jedan odgovor:

    • Nije definisan

    • Datoteku /tmp/b.b

    • Datoteku /tmp/a.a

    • Ekran

    • Tastaturu

    • Ne znam

    Correct Answer
    A. Ekran
    Explanation
    The command "ls /etc" is used to list the contents of the "/etc" directory. The result of this command is displayed on the screen. Therefore, the answer "ekran" (screen) is correct.

    Rate this question:

  • 13. 

    Operator za blok primitive 2> deluje na: Izaberite jedan odgovor:

    • Stdout (standardni izlaz)

    • Stdin (standardni ulaz)

    • Stderr (standardni izlaz za greške)

    • Ne znam

    Correct Answer
    A. Stderr (standardni izlaz za greške)
    Explanation
    The "2>" operator in this context is used to redirect the standard error output. In Unix-like systems, file descriptors are used to represent input, output, and error streams. The number 2 represents the file descriptor for standard error. By using the "2>" operator, any output generated by the command will be redirected to the standard error stream, which is typically displayed as error messages. Therefore, the correct answer is "stderr (standardni izlaz za greške)".

    Rate this question:

  • 14. 

    Operator za blok primitive < deluje na: Izaberite jedan odgovor:

    • Stderr (standardni izlaz za greške)

    • Ne znam

    • Stdin (standardni ulaz)

    • Stdout (standardni izlaz)

    Correct Answer
    A. Stdin (standardni ulaz)
    Explanation
    The operator za blok primitive < is used to redirect the standard input (stdin) from a file or another command. It allows the contents of the file or the output of the command to be used as the input for the current command. Therefore, the correct answer is stdin (standardni ulaz).

    Rate this question:

  • 15. 

    Lunux kerneli podržavaju: Izaberite jedan odgovor:

    • Veliki broj računarsku arhitektura (gotovo sve)

    • Isključivo Motorolinu familiju procesora

    • Isključivo IA‐32 arhitekturu

    • Isključivo SUN Sparc arhitekturu

    Correct Answer
    A. Veliki broj računarsku arhitektura (gotovo sve)
    Explanation
    The correct answer is "veliki broj računarsku arhitektura (gotovo sve)". This means that the Linux kernel supports a wide range of computer architectures, almost all of them.

    Rate this question:

  • 16. 

    Za baferski keš važe pravila: Izaberite jedan odgovor:

    • To je korisnička memorija i nije vidljiva za programera

    • To je korisnička memorija i vidljiva je za programera

    • To je kernelska memorija i vidljiva je za programera

    • To je kernelska memorija i nije vidljiva za programera

    Correct Answer
    A. To je kernelska memorija i nije vidljiva za programera
    Explanation
    Za baferski keš važe pravila da je to kernelska memorija i da nije vidljiva za programera.

    Rate this question:

  • 17. 

    U arhitekturi UNIX operativnog sistema sa 3 nivoa, drugi ili srednji nivo predstavlja: Izaberite jedan odgovor:

    • Kernelski nivo

    • Mrežni nivo

    • Hardverski nivo

    • Korisnički nivo

    Correct Answer
    A. Kernelski nivo
    Explanation
    The correct answer is "kernelski nivo." In the architecture of the UNIX operating system with 3 levels, the second or middle level represents the kernel level. The kernel is the core component of the operating system that manages the system's resources and provides essential services for the other layers. It interacts directly with the hardware and handles tasks such as memory management, process scheduling, and device drivers. The kernel level is responsible for maintaining the overall stability and functionality of the operating system.

    Rate this question:

  • 18. 

    Savremeni format izvšnih datoteka na Linux OS se naziva: Izaberite jedan odgovor:

    • A.out

    • A.a

    • ELF

    Correct Answer
    A. ELF
    Explanation
    ELF (Executable and Linkable Format) is the modern executable file format used in Linux operating systems. It is a standard file format for executables, object code, shared libraries, and core dumps. The ELF format provides flexibility, extensibility, and portability for different architectures. It allows for dynamic linking, which enables the use of shared libraries, and supports different file types such as executables, object files, and relocatable files. ELF files can be executed directly by the operating system or loaded into memory by a loader program.

    Rate this question:

  • 19. 

    Koji od sistemskih poziva ne pripada grupi: Izaberite jedan odgovor:

    • Fork

    • Close

    • Read

    • Write

    • Open

    Correct Answer
    A. Fork
    Explanation
    The correct answer is "fork". Fork is not a system call that belongs to the group. System calls like close, read, write, and open are used for file operations, while fork is used for creating a new process by duplicating the existing process.

    Rate this question:

  • 20. 

    Koji od sistemskih poziva ne pripada grupi: Izaberite jedan odgovor:

    • Close

    • Open

    • Write

    • Read

    • Fork

    Correct Answer
    A. Fork
    Explanation
    The correct answer is "fork". Fork is not a system call, but rather a function used for creating a new process in Unix-like operating systems. System calls are used by programs to request services from the operating system, such as opening or closing files, reading or writing data, and managing processes.

    Rate this question:

  • 21. 

    Imate inode strukturu sa sledećim stepenima indirekcije . Veličina sistemskog bloka je 4K. Kolika je maksimalna veličina datoteke koja može da se adresirati sa direktnim pointerima: Izaberite jedan odgovor:

    • 4K

    • 80K

    • 40K

    • Ne znam

    • 8K

    Correct Answer
    A. 40K
    Explanation
    The maximum size of a file that can be addressed with direct pointers is 40K.

    Rate this question:

  • 22. 

    Deskriptor datoteke koji ima vrednost 0 predstavlja: Izaberite jedan odgovor:

    • Stdin (standardni ulaz)

    • Stderr (standardni izlaz za greške)

    • Ne znam

    • Stdout (standardni izlaz)

    Correct Answer
    A. Stdin (standardni ulaz)
    Explanation
    The descriptor of a file with a value of 0 represents the standard input.

    Rate this question:

  • 23. 

    Od originalnog proizvođača UNIX OS-a, najdominantnija verzija je: Izaberite jedan odgovor:

    • UNIX System V

    • UNIX VII

    • Ne znam

    • UNIX I

    • UNIX II

    • UNIX System III

    Correct Answer
    A. UNIX System V
    Explanation
    UNIX System V is the most dominant version of UNIX OS from the original manufacturer.

    Rate this question:

  • 24. 

    U arhitekturi UNIX operativnog sistema sa 3 nivoa, treći i najviši nivo predstavlja: Izaberite jedan odgovor:

    • Kernelski nivo

    • Korisnički nivo

    • Mrežni nivo

    • Hardverski nivo

    Correct Answer
    A. Korisnički nivo
    Explanation
    In the architecture of a UNIX operating system with 3 levels, the third and highest level is the user level. This level is where the user interacts with the system and runs applications. It is responsible for providing a user-friendly interface and managing user processes. The user level is separate from the kernel level, which handles low-level tasks and interacts directly with the hardware. The network level is not the highest level in this architecture, as it is responsible for managing network communications. The hardware level is also not the highest level, as it refers to the physical components of the system.

    Rate this question:

  • 25. 

    Imate inode strukturu sa sledećim stepenima indirekcije . Veličina sistemskog bloka je 1K. Kolika je maksimalna veličina datoteke koja može da se adresirati sa direktnim pointerima: Izaberite jedan odgovor:

    • Ne znam

    • 40K

    • 1K

    • 2K

    • 10K

    Correct Answer
    A. 10K
    Explanation
    The maximum size of a file that can be addressed with direct pointers can be calculated by multiplying the number of direct pointers by the size of the system block. In this case, since the inode structure has a single level of indirection and the size of the system block is 1K, the maximum size of the file that can be addressed with direct pointers is 10K.

    Rate this question:

  • 26. 

    Operator za blok primitive 1> deluje na:  Izaberite jedan odgovor:

    • Stdout (standardni izlaz)

    • Stderr (standardni izlaz za greške)

    • Stdin (standardni ulaz)

    • Ne znam

    Correct Answer
    A. Stdout (standardni izlaz)
    Explanation
    The operator "1>" is used to redirect the standard output (stdout) of a command to a file. This means that any output generated by the command will be written to the specified file instead of being displayed on the terminal. Therefore, the correct answer is stdout (standardni izlaz).

    Rate this question:

  • 27. 

    Operator za blok primitive > predstavlja: Izaberite jedan odgovor:

    • Redirekciju izlaza

    • Redirekciju standardnog izlaza za greške

    • Ne znam

    • Redirekciju ulaza

    Correct Answer
    A. Redirekciju izlaza
    Explanation
    The correct answer is "redirekciju izlaza." This is because the ">" operator in programming languages is commonly used to redirect the output of a command or program to a file or another location. It allows the user to specify where the output should be directed, such as a text file or another program.

    Rate this question:

  • 28. 

    Operator za blok primitive 2> predstavlja: Izaberite jedan odgovor:

    • Ne znam

    • Redirekciju izlaza

    • Redirekciju standardnog izlaza za greške

    • Redirekciju ulaza

    Correct Answer
    A. Redirekciju standardnog izlaza za greške
    Explanation
    The ">" operator in this context represents the redirection of the standard output for errors. This means that any error messages generated by the program will be redirected to a specified location instead of being displayed on the standard output.

    Rate this question:

  • 29. 

    Od brojnih američkih univerziteta koji su razvijali UNIX, najdominantniji uticaj i najveći doprinos dao je: Izaberite jedan odgovor:

    • Berkeley

    • Yale

    • Ne znam

    • Standford

    Correct Answer
    A. Berkeley
    Explanation
    Berkeley je dao najdominantniji uticaj i najveći doprinos razvoju UNIX sistema.

    Rate this question:

  • 30. 

    Originalni proizvođač UNIX OS-a je: Izaberite jedan odgovor:

    • IBM

    • Ne znam

    • AT&T

    • Samsung

    • Philips

    • HP

    Correct Answer
    A. AT&T
    Explanation
    AT&T is the original manufacturer of the UNIX operating system. They developed it in the 1960s and 1970s at the Bell Labs research center. UNIX was initially used for internal purposes within AT&T, but it gained popularity and was eventually licensed to other companies. Today, UNIX has evolved into various versions, including Linux, and is widely used in server systems and embedded devices.

    Rate this question:

  • 31. 

    Dva centralna koncepta u arhitekturi UNIX kernela predstavljaju: Izaberite jedan odgovor:

    • Datoteke i umrežavanje

    • Procesi i memorija

    • Procesi i umrežavanje

    • Procesi i datoteke

    Correct Answer
    A. Procesi i datoteke
    Explanation
    The correct answer is "procesi i datoteke". In the architecture of a UNIX kernel, the two central concepts are processes and files. Processes represent running programs and files represent the stored data. These concepts are fundamental to the functioning of the UNIX operating system, as processes manage the execution of programs and files provide a means of storing and accessing data.

    Rate this question:

  • 32. 

    Sistemski poziv open ima sintaksu fd = open (pathname, flags, modes) pri čemu je parametar pathname: Izaberite jedan odgovor:

    • Broj inode strukture

    • Puno ime datoteke sa svim granama

    • Samo ime datoteke

    • Blok datoteke na disku

    Correct Answer
    A. Puno ime datoteke sa svim granama
    Explanation
    The parameter "pathname" in the system call "open" refers to the full name of the file including all its branches or directories. This means that it includes the complete path from the root directory to the specific file. The "open" system call is used to open a file in the operating system, and the parameter "pathname" helps specify the exact file location.

    Rate this question:

  • 33. 

    Da bi ste videli atribute datoteke na UNIX OS, upotrebićete sledeći sistemski poziv: Izaberite jedan odgovor:

    • Chmod

    • Chown

    • Stat ili fstat

    • Chdir

    • Chroot

    Correct Answer
    A. Stat ili fstat
    Explanation
    To view the attributes of a file on a UNIX OS, you would use the system call "stat" or "fstat". This system call allows you to retrieve information such as the file size, permissions, ownership, and timestamps of a file. The "chmod" command is used to change the permissions of a file, "chown" is used to change the ownership of a file, "chdir" is used to change the current directory, and "chroot" is used to change the root directory for a process.

    Rate this question:

  • 34. 

    U komandi $ls /tmp/a* I wc l na ekranu se vide: Izaberite jedan odgovor:

    • Ovo je sintaksna greška

    • Obe informacije i imena datoteka i broj datoteka iz /tmp direktorijuma koje počinju sa a

    • Samo broj datoteka iz /tmp direktorijuma koje počinju sa a

    • Ne znam

    • Samo imena datoteka iz /tmp direktorijuma koje počinju sa a

    Correct Answer
    A. Samo broj datoteka iz /tmp direktorijuma koje počinju sa a
    Explanation
    The command "ls /tmp/a*" lists all the files in the /tmp directory that start with "a". The "wc -l" command counts the number of lines in the output of the previous command. Therefore, the output will only show the number of files in the /tmp directory that start with "a".

    Rate this question:

  • 35. 

    Operator za blok primitive > deluje na:  Izaberite jedan odgovor:

    • Stdin (standardni ulaz)

    • Ne znam

    • Stderr (standardni izlaz za greške)

    • Stdout (standardni izlaz)

    Correct Answer
    A. Stdout (standardni izlaz)
    Explanation
    The operator za blok primitive ">" is used to redirect the output of a command to a file or another command. In this case, it is specifically referring to redirecting the standard output (stdout) of a command. Therefore, the correct answer is stdout (standardni izlaz).

    Rate this question:

  • 36. 

    Deskriptor datoteke koji ima vrednost 1 predstavlja: Izaberite jedan odgovor:

    • Stderr (standardni izlaz za greške)

    • Stdout (standardni izlaz)

    • Stdin (standardni ulaz)

    • Ne znam

    Correct Answer
    A. Stdout (standardni izlaz)
    Explanation
    The descriptor of a file with a value of 1 represents the standard output, which is the default destination for the output of a program. This means that any data written to this descriptor will be displayed on the screen or redirected to another file or device as specified by the user.

    Rate this question:

  • 37. 

    Da bi ste aktivirali modul Lunux kernela, po pitanju restartovanja Linux OS: Izaberite jedan odgovor:

    • Ne trebate restartovati Linux

    • Morate restartovati Linux

    • Zavisi od distribucije

    Correct Answer
    A. Ne trebate restartovati Linux
    Explanation
    In order to activate a module in the Linux kernel, you do not need to restart Linux. Restarting Linux is not necessary for activating a module.

    Rate this question:

  • 38. 

    Koji od sistemsih poziva ne pripada grupi: Izaberite jedan odgovor:

    • Close

    • Open

    • Write

    • Read

    • Fork

    Correct Answer
    A. Fork
    Explanation
    The correct answer is "fork". The other options (close, open, write, read) are all system calls that are used to perform various operations on files or I/O streams. However, "fork" is not a system call related to file or I/O operations. Instead, it is a system call used to create a new process by duplicating the existing process.

    Rate this question:

  • 39. 

    Operator za blok primitive 1> predstavlja: Izaberite jedan odgovor:

    • Redirekciju izlaza

    • Ne znam

    • Redirekciju standardnog izlaza za greške

    • Redirekciju ulaza

    Correct Answer
    A. Redirekciju izlaza
    Explanation
    The correct answer is "redirekciju izlaza." This operator ">" is used for redirecting the output of a command to a file or another command. It allows the output to be saved in a file or used as input for another command.

    Rate this question:

  • 40. 

    Sistemski poziv write ima sintaksu number = write ( fd, buffer, count) pri čemu je parametar buffer: Izaberite jedan odgovor:

    • Blok datoteke na disku

    • Deskriptor datoteke koje se dobija od sistemskog poziva open

    • Samo ime datoteke

    • Ne znam

    • Puno ime datoteke sa svim granama

    • Adresu memorijskog bafera koje je proces dobio da upiše u datoteku

    Correct Answer
    A. Adresu memorijskog bafera koje je proces dobio da upiše u datoteku
    Explanation
    The parameter "buffer" in the write system call syntax refers to the memory address of the buffer that the process received to write into the file.

    Rate this question:

  • 41. 

    U konstrukciji command >/tmp/a.a, ulaz za komandu je: Izaberite jedan odgovor:

    • Datoteka /tmp/a.a

    • Ne znam

    • Tastatura

    • Ekran

    • Nije definisan

    Correct Answer
    A. Tastatura
    Explanation
    The correct answer is "tastatura" because the command "> /tmp/a.a" is a redirection command in which the output of the command is redirected to a file named "/tmp/a.a". In this case, the input for the command is coming from the keyboard, hence the answer is "tastatura" which means "keyboard" in Serbian.

    Rate this question:

  • 42. 

    Koji od datih sistemskih poziva omogućava završetak procesa na na UNIX OS: Izaberite jedan odgovor:

    • Exec

    • Wait

    • Exit

    • Fork

    Correct Answer
    A. Exit
    Explanation
    The correct answer is "exit." The exit system call allows a process to terminate and return an exit status to the parent process. When a process calls the exit system call, it releases all its resources and terminates. The exit status can be used by the parent process to determine the outcome of the terminated process.

    Rate this question:

  • 43. 

    Baferski keš, kešira sledeće: Izaberite jedan odgovor:

    • Blokove na disku, tj delove datoteka

    • Procese

    • Stranice virtulene memorije

    • Pakete za mrežne komunikacije

    Correct Answer
    A. Blokove na disku, tj delove datoteka
    Explanation
    The correct answer is "blokove na disku, tj delove datoteka." This is because the term "Baferski keš" refers to a cache memory that stores blocks of data from disk files. These blocks are accessed more frequently, so they are stored in the cache to improve the system's performance by reducing the time it takes to access the disk. Therefore, the correct answer refers to blocks on the disk, which are parts of files.

    Rate this question:

  • 44. 

    Koliko blokova čita algoritam breada: Izaberite jedan odgovor:

    • 1

    • 0

    • Zavisi od zahteva

    • 2

    • 1 ili 2

    Correct Answer
    A. 1 ili 2
    Explanation
    The algorithm of Breadth-First Search (BFS) reads one or two blocks. This is because BFS explores all the vertices at the current level before moving to the next level. Therefore, it reads one block for the current level and potentially reads an additional block for the next level if there are any adjacent vertices.

    Rate this question:

  • 45. 

    U algoritmu iput dešava se postavljanje inode strukture u slobodnu listu: Izaberite jedan odgovor:

    • Samo na FreeBSD UNIX

    • Ne znam

    • Samo na Linux OS

    • Da

    • Ne

    Correct Answer
    A. Da
    Explanation
    The correct answer is "da". This means that the algorithm for placing the inode structure in the free list is applicable. However, without further context or information about the algorithm or the specific operating system, it is difficult to provide a more detailed explanation.

    Rate this question:

  • 46. 

    U algoritmu iput dešava se fizičko brisanje datoteke Izaberite jedan odgovor:

    • Ne znam

    • Samo na FreeBSD UNIX

    • Ne

    • Da

    • Samo na Linux OS

    Correct Answer
    A. Da
    Explanation
    The explanation for the given correct answer is that the algorithm allows for the physical deletion of a file.

    Rate this question:

  • 47. 

    Sistemski poziv close ima sintaksu close(fd) pri čemu je parametar fd: Izaberite jedan odgovor:

    • Puno ime datoteke sa svim granama

    • Blok datoteke na disku

    • Samo ime datoteke

    • File deskriptor datoteke

    • Broj inode strukture

    Correct Answer
    A. File deskriptor datoteke
    Explanation
    The system call "close" has the syntax "close(fd)" where the parameter "fd" represents the file descriptor of the file being closed.

    Rate this question:

  • 48. 

    Imate datoteke /tmp/a.a i /tmp/b.b koje niko nije otvarao. Proces obavi sledeću sekvencu sistemskih poziva fd1=open(/tmp/a.a, O_RDONLY,0) fd2=open(/tmp/a.a, O_RDWR,0) fd3=open(/tmp/b.b, O_WRONLY,0) count1=read(fd1, buffer,200) count2=read(fd2, buffer,100) count3=read(fd3, buffer,300) Odrediti pomeraj offset za sledeće čitanje iz datoteke /tmp/b.b za desktriptor fd3 Izaberite jedan odgovor:

    • 100

    • 0

    • 101

    • 301

    • 201

    • 200

    • 300

    Correct Answer
    A. 300
    Explanation
    The offset for the next read from the file /tmp/b.b for file descriptor fd3 is 300. This is because the process has already performed the system call "open(/tmp/b.b, O_WRONLY,0)" to open the file with write-only access. Since no other operations have been performed on this file descriptor, the current offset is 0. The next read operation will start reading from the offset of 0 and read 300 bytes from the file. Therefore, the offset for the next read will be 300.

    Rate this question:

  • 49. 

    Da bi ste promenili / (root direktorijum) na UNIX OS, upotrebićete sledeći sistemski poziv: Izaberite jedan odgovor:

    • Chmod

    • Chown

    • Chdir

    • Chroot

    Correct Answer
    A. Chroot
    Explanation
    The correct answer is chroot. To change the root directory on a UNIX OS, the chroot command is used. This command allows the user to run a process or a command with a different root directory, effectively isolating it from the rest of the system. This can be useful for security purposes or when testing software in a controlled environment.

    Rate this question:

Quiz Review Timeline (Updated): Mar 22, 2023 +

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
  • Jan 29, 2020
    Quiz Created by
    Nikolastosevski
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.