1.
U komandi $ls /etc 2>/tmp/b.b ukoliko se dogodi greška, poruke o grešci idu na:
Izaberite jedan odgovor:
Correct Answer
B. Datoteku /tmp/b.b
Explanation
The command "2>/tmp/b.b" is used to redirect the error messages to a file named "/tmp/b.b". So, if an error occurs while running the command "ls /etc", the error messages will be stored in the file "/tmp/b.b".
2.
U komandi $ls /tmp/a* I wc l na ekranu se vide:
Izaberite jedan odgovor:
Correct Answer
C. 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".
3.
U komandi $ls /etc rezultat listanja direktorijuma ide na:
Izaberite jedan odgovor:
Correct Answer
D. 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.
4.
U komandi $ls /etc 2>/tmp/b.b rezultat listanja direktorijuma ide na:
Izaberite jedan odgovor:
Correct Answer
B. Ekran
Explanation
The correct answer is "ekran" because the command "ls /etc" is used to list the contents of the "/etc" directory, and by default, the output of the command is displayed on the screen (ekran). The option "tastaturu" refers to the keyboard, "nije definisan" means not defined, "datoteku /tmp/b.b" means the file /tmp/b.b, "ne znam" means I don't know, and "datoteku /tmp/a.a" means the file /tmp/a.a.
5.
U komandi $ls /etc 1>/tmp/b.b ukoliko se dogodi greška, poruke o grešci idu na:
Izaberite jedan odgovor:
Correct Answer
B. Ekran
Explanation
The command "ls /etc 1>/tmp/b.b" is used to redirect the standard output of the "ls /etc" command to the file "/tmp/b.b". If an error occurs during the execution of the command, the error messages will be displayed on the screen (ekran).
6.
U komandi $ls /etc 1>tmp/a.a rezultat listanja direktorijuma ide na:
Izaberite jedan odgovor:
Correct Answer
A. Datoteku /tmp/a.a
Explanation
The command "ls /etc" lists the contents of the "/etc" directory. The "1>tmp/a.a" redirects the output of the command to the file "/tmp/a.a". Therefore, the result of the directory listing goes to the file "/tmp/a.a".
7.
U komandi $ls /etc I wc l na ekranu se vide:
Izaberite jedan odgovor:
Correct Answer
D. Samo broj datoteka iz /etc direktorijuma
Explanation
The command "ls /etc" lists the files and directories in the /etc directory. The "wc -l" command counts the number of lines in the output. Therefore, the command "ls /etc | wc -l" will display only the number of files in the /etc directory.
8.
U komandi $ls /bin/b* | wc l na ekranu se vide:
Izaberite jedan odgovor:
Correct Answer
C. Samo broj datoteka iz /bin direktorijuma koje počinju sa b
Explanation
The command "ls /bin/b* | wc l" lists all the files in the /bin directory that start with "b" and then pipes the output to the "wc" command with the "l" option. The "wc" command counts the number of lines in the output, which in this case represents the number of files in the /bin directory that start with "b". Therefore, the output will only display the count of files that meet the specified criteria.
9.
Operator za blok primitive 1> deluje na:
Izaberite jedan odgovor:
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).
10.
Operator za blok primitive I u konstrukciji command1 | command2, u odnosu na drugu komandu command2 utiče na:
Izaberite jedan odgovor:
Correct Answer
C. Redirekciju ulaza
Explanation
The operator "|" in the construction "command1 | command2" is used for piping the output of command1 as input to command2. Therefore, it affects the input redirection for command2.
11.
Operator za blok primitive I u konstrukciji command1 | command2, u odnosu na prvu komandu command1 utiče na:
Izaberite jedan odgovor:
Correct Answer
A. Redirekciju izlaza
Explanation
The correct answer is "redirekciju izlaza". In the construction command1 | command2, the operator "|" is used to redirect the output of command1 to command2 as input. This means that the output of command1 becomes the input for command2. Therefore, the operator affects the redirection of the output.
12.
Operator za blok primitive I predstavlja:
Izaberite jedan odgovor:
Correct Answer
B. Komandni pipeline
Explanation
The correct answer is "komandni pipeline". A command pipeline is a sequence of commands where the output of one command is used as the input for the next command. This allows for the chaining of multiple commands together to perform complex tasks. It is a powerful feature in command-line interfaces that enables the efficient processing and manipulation of data.
13.
Operator za blok primitive > predstavlja:
Izaberite jedan odgovor:
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.
14.
Operator za blok primitive 2> deluje na:
Izaberite jedan odgovor:
Correct Answer
C. 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)".
15.
Operator za blok primitive < deluje na:
Izaberite jedan odgovor:
Correct Answer
C. 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).
16.
Operator za blok primitive > deluje na:
Izaberite jedan odgovor:
Correct Answer
D. 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).
17.
Operator za blok primitive < predstavlja:
Izaberite jedan odgovor:
Correct Answer
B. 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.
18.
Operator za blok primitive 1> predstavlja:
Izaberite jedan odgovor:
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.
19.
Operator za blok primitive 2> predstavlja:
Izaberite jedan odgovor:
Correct Answer
C. 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.
20.
UNIX je pre svega:
Izaberite jedan odgovor:
Correct Answer
C. 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.
21.
Multi user OS UNIX je pre svega:
Izaberite jedan odgovor:
Correct Answer
B. Time‐sharing OS
Explanation
UNIX is primarily known as a time-sharing operating system because it allows multiple users to access and use the system simultaneously. Time-sharing refers to the ability of the operating system to allocate resources such as CPU time, memory, and peripherals among multiple users or processes. This allows users to interact with the system and run programs concurrently, making UNIX a multi-user operating system.
22.
OS UNIX se piše na:
Izaberite jedan odgovor:
Correct Answer
B. 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.
23.
Deskriptor datoteke koji ima vrednost 1 predstavlja:
Izaberite jedan odgovor:
Correct Answer
B. 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.
24.
Deskriptor datoteke koji ima vrednost 2 predstavlja:
Izaberite jedan odgovor:
Correct Answer
C. 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.
25.
Deskriptor datoteke koji ima vrednost 0 predstavlja:
Izaberite jedan odgovor:
Correct Answer
A. Stdin (standardni ulaz)
Explanation
The descriptor of a file with a value of 0 represents the standard input.
26.
U konstrukciji command >/tmp/a.a, ulaz za komandu je:
Izaberite jedan odgovor:
Correct Answer
C. 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.
27.
U konstrukciji command >/tmp/a.a, izlaz za komandu je:
Izaberite jedan odgovor:
Correct Answer
E. Datoteka /tmp/a.a
Explanation
The correct answer is "datoteka /tmp/a.a". This means that the output for the command "> /tmp/a.a" is the file /tmp/a.a. The ">" symbol is used to redirect the output of a command to a file, and in this case, the output is being redirected to the file /tmp/a.a. Therefore, the correct answer is that the output is the file /tmp/a.a.
28.
U konstrukciji command >/tmp/a.a, izlaz za greške za komandu je:
Izaberite jedan odgovor:
Correct Answer
A. Ekran
Explanation
The correct answer is "ekran" because when the command is executed, any error messages produced by the command will be displayed on the screen.
29.
U konstrukciji command 1>/tmp/a.a 2>/tmp/b.b, ulaz za komandu je:
Izaberite jedan odgovor:
Correct Answer
C. Tastatura
Explanation
The correct answer is "tastatura". In the given command, "command 1>/tmp/a.a 2>/tmp/b.b", the ">" symbol is used for redirecting the output of the command. "1>" redirects the standard output to the file "/tmp/a.a" and "2>" redirects the standard error to the file "/tmp/b.b". Since there is no specific file mentioned for input redirection, it means that the input for the command is coming from the keyboard, which is represented by "tastatura" in Croatian.
30.
U konstrukciji command 1>/tmp/a.a 2>/tmp/b.b, izlaz za komandu je:
Izaberite jedan odgovor:
Correct Answer
B. Datoteka /tmp/a.a
Explanation
The given command "command 1>/tmp/a.a 2>/tmp/b.b" redirects the standard output (1>) to the file "/tmp/a.a" and the standard error (2>) to the file "/tmp/b.b". Therefore, the output for the command will be stored in the file "/tmp/a.a".
31.
U konstrukciji command 1>/tmp/a.a 2>/tmp/b.b, izlaz za greške za komandu je:
Izaberite jedan odgovor:
Correct Answer
A. Datoteka /tmp/b.b
Explanation
The given command "command 1>/tmp/a.a 2>/tmp/b.b" redirects the standard output (1>) to the file /tmp/a.a and redirects the standard error (2>) to the file /tmp/b.b. Therefore, the output for errors from the command would be stored in the file /tmp/b.b.
32.
Od originalnog proizvođača UNIX OS-a, najdominantnija verzija je:
Izaberite jedan odgovor:
Correct Answer
A. UNIX System V
Explanation
UNIX System V is the most dominant version of UNIX OS from the original manufacturer.
33.
Generacija BSD UNIX sistema koja nosi oznaku FreeBSD odnosi se na:
Izaberite jedan odgovor:
Correct Answer
C. PC računare (IA 32 arhitektura)
Explanation
The FreeBSD generation of the BSD UNIX system is specifically designed for PC computers using the IA 32 architecture. This means that it is compatible with personal computers running on Intel and AMD processors, which are commonly used in the PC market. It is not designed for RISC machines, PDP machines, or VAX machines.
34.
Generacija BSD UNIX sistema koja nosi oznaku BSD 2.xx, odnosi se na:
Izaberite jedan odgovor:
Correct Answer
E. PDP mašine
Explanation
The BSD 2.xx generation of the BSD UNIX system refers to the version of the system that was developed for PDP machines. PDP machines were a series of minicomputers produced by Digital Equipment Corporation (DEC) in the 1960s and 1970s. Therefore, the correct answer is PDP machines.
35.
Generacija BSD UNIX sistema koja nosi oznaku BSD 4.xx, odnosi se na:
Izaberite jedan odgovor:
Correct Answer
D. VAX mašine
Explanation
The correct answer is VAX machines. The BSD 4.xx generation of the BSD UNIX system refers to the version of the operating system that was designed to run on VAX machines. VAX (Virtual Address eXtension) was a line of computers developed by Digital Equipment Corporation (DEC) in the 1970s and 1980s. BSD UNIX was initially developed at the University of California, Berkeley, and was widely used on VAX machines during that time.
36.
Generacija UNIX sistema koja nosi oznaku SunSolaris odnosi se na:
Izaberite jedan odgovor:
Correct Answer
D. RISC mašine
Explanation
The correct answer is RISC machines. The Sun Solaris generation of UNIX systems is specifically designed to run on RISC (Reduced Instruction Set Computer) machines. RISC machines use a simplified instruction set, which allows for faster and more efficient execution of instructions. Sun Solaris was originally developed by Sun Microsystems for their SPARC (Scalable Processor Architecture) RISC-based systems.
37.
Od brojnih američkih univerziteta koji su razvijali UNIX, najdominantniji uticaj i najveći doprinos dao je:
Izaberite jedan odgovor:
Correct Answer
A. Berkeley
Explanation
Berkeley je dao najdominantniji uticaj i najveći doprinos razvoju UNIX sistema.
38.
Originalni proizvođač UNIX OS-a je:
Izaberite jedan odgovor:
Correct Answer
C. 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.
39.
Da bi ste aktivirali modul Lunux kernela, po pitanju restartovanja Linux OS:
Izaberite jedan odgovor:
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.
40.
Lunux kerneli podržavaju:
Izaberite jedan odgovor:
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.
41.
Sistem datoteka pristupa datotekama tj diskovima na dva načina ili pristupa. Koji način prolazi kroz keš mehanizam:
Izaberite jedan odgovor:
Correct Answer
C. Baferisani ili blokovski
Explanation
The correct answer is "baferisani ili blokovski." This is because the question is asking about the two methods or approaches to accessing files or disks through the cache mechanism. The term "baferisani ili blokovski" refers to buffered or block-based access, which involves reading or writing data in blocks or chunks rather than individually. This method allows for more efficient and faster access to data by utilizing the cache memory to store and retrieve larger amounts of data at once.
42.
Za baferski keš važe pravila:
Izaberite jedan odgovor:
Correct Answer
D. 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.
43.
U arhitekturi UNIX operativnog sistema sa 3 nivoa, drugi ili srednji nivo predstavlja:
Izaberite jedan odgovor:
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.
44.
Koji od datih sistemskih poziva omogućava završetak procesa na na UNIX OS:
Izaberite jedan odgovor:
Correct Answer
C. 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.
45.
Poslednje verzije Linux kernela imaju oznaku:
Izaberite jedan odgovor:
Correct Answer
D. 3.xx
Explanation
The correct answer is 3.xx. The "xx" represents the specific version number of the Linux kernel. The question is asking for the label of the latest versions of the Linux kernel, and the answer indicates that the latest versions have a version number starting with "3".
46.
Sistem datoteka pristupa datotekama tj diskovima na dva načina ili pristupa. Koji način ne prolazi keš mehanizam:
Izaberite jedan odgovor:
Correct Answer
C. Neobrađeni (raw)
Explanation
The correct answer is "neobrađeni (raw)". This is because the cache mechanism is not bypassed when accessing files or disks in the buffered or block mode, but it is bypassed when accessing them in the raw mode.
47.
Koji od sistemskih poziva kreira novi proces na UNIX OS:
Izaberite jedan odgovor:
Correct Answer
D. Fork
Explanation
The correct answer is "fork". In UNIX OS, the "fork" system call is used to create a new process by duplicating the existing process. The new process, called the child process, is an exact copy of the parent process, including its memory space and code. After the fork system call, both the parent and child processes continue their execution from the next instruction following the fork. The child process can then execute a different program using the "exec" system call.
48.
Koji od datih sistemskih poziva omogućava sinhronizaciju procesa na na UNIX OS:
Izaberite jedan odgovor:
Correct Answer
B. Wait
Explanation
The wait system call allows for process synchronization in UNIX OS. It suspends the execution of the calling process until one of its child processes terminates. This ensures that the parent process waits for the child process to complete before continuing its execution, thereby synchronizing their activities.
49.
U arhitekturi UNIX operativnog sistema sa 3 nivoa, prvi i najniži nivo predstavlja:
Izaberite jedan odgovor:
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.
50.
Koji od datih sistemskih poziva ne pripada grupi:
Izaberite jedan odgovor:
Correct Answer
D. Open
Explanation
The correct answer is "open" because the other system calls listed (exec, wait, fork, and exit) are all related to process management and control, while "open" is a system call used for opening files or creating new files in a program.