Baze Podataka Ispit

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 Acabarbul
A
Acabarbul
Community Contributor
Quizzes Created: 1 | Total Attempts: 1,722
| Attempts: 1,722
SettingsSettings
Please wait...
  • 1/124 Questions

    Password je: 

    • Tajni naziv, kojom korisnik pored username-a kompletira postupak najave
    • Javni podatak za najavu korisnika sistemu za upravljanje BP
    • Indeks osnovne tabele u BP
    • Javni podatak koji se razmenjuje sa drugim korisnicima
Please wait...
Baze Podataka Ispit - Quiz
About This Quiz

.


Quiz Preview

  • 2. 

    U kom jeziku su kodirane Web stranice 

    • U HTML jeziku

    • U FTP jeziku

    • U XFLM jeziku

    • U C++ jeziku

    • U Java jeziku

    Correct Answer
    A. U HTML jeziku
    Explanation
    Web stranice su kodirane u HTML jeziku. HTML (HyperText Markup Language) je standardni jezik za izradu web stranica. Pomoću HTML-a se definiše struktura i sadržaj web stranica, kao i način na koji će se prikazati u web pregledačima. HTML koristi oznake (tagove) za označavanje elemenata na stranici, kao što su naslovi, paragrafi, slike, linkovi itd. Ove oznake se zatvaraju kako bi se definisao početak i kraj svakog elementa.

    Rate this question:

  • 3. 

    SQL naredba za dodelu privilegija korisnicima je: 

    • SELECT

    • UPDATE

    • DELETE

    • GRANT

    • CREATE

    • INSERT

    Correct Answer
    A. GRANT
    Explanation
    The correct answer is GRANT. In SQL, the GRANT statement is used to assign privileges to users. It allows the user to grant specific privileges to other users, such as SELECT, UPDATE, DELETE, CREATE, and INSERT. This statement is commonly used to control access to database objects and to manage user permissions within a database system.

    Rate this question:

  • 4. 

    LOG ili ŽURNAL (dnevnik transakcija) zapisuje za svaki objekat i transakciju koja je Oporavak - proces vraćanja BP u korektno stanje je:

    • RECOVERY

    • REDUDANCE

    • REQUIREMENT

    • ALTER

    Correct Answer
    A. RECOVERY
    Explanation
    The given question is asking for the process of returning a database to a correct state. The correct answer is "RECOVERY" because recovery is the process of restoring a database to a consistent and correct state after a failure or system crash. This process involves undoing any incomplete transactions and redoing any committed transactions to ensure data integrity.

    Rate this question:

  • 5. 

    Username je: 

    • Javni podatak za najavu korisnika sistemu za upravljanje BP

    • Tajni podatak za najavu korisnika sistemu za upravljanje BP

    • Ime osnovne tabele na koju se povezuju sve druge tabele BP

    • Tajni podatak u tabeli korisnika, koji ga deli od drugih korisnika

    Correct Answer
    A. Javni podatak za najavu korisnika sistemu za upravljanje BP
    Explanation
    The correct answer is "javni podatak za najavu korisnika sistemu za upravljanje BP." This is because the term "javni podatak" refers to a public data, and "najavu korisnika sistemu za upravljanje BP" translates to user announcement data in a database management system. Therefore, this option suggests that the answer is a public data used for user announcements in a database management system.

    Rate this question:

  • 6. 

    Naredbom BEGIN TRANSACTION: 

    • Započinje izvršavanje transakcije

    • Prenosi se dejstvo transakcije sa radne MEM na bazu podataka koja je na disku

    • Započinje opisivanje osobina jedne transakcije

    • Mora da započne svaki SQL upit

    Correct Answer
    A. Započinje izvršavanje transakcije
    Explanation
    The given correct answer states that the BEGIN TRANSACTION command initiates the execution of a transaction. This means that when this command is executed, the database system starts recording and tracking all the changes made to the database during the transaction. It marks the beginning of a set of SQL statements that will be treated as a single unit, ensuring that all the changes are either committed or rolled back as a whole.

    Rate this question:

  • 7. 

    Pogled (VIEW) je: 

    • Vrsta indeksa u SQL-u koji se čuva u RAM-u

    • Obavezna tabela u svakoj bazi podataka

    • Virtuelna (izvedena) tabela, vrsta potprograma u SQL

    • Šema relacione baze podataka sa potpunim opisom svake tabele

    Correct Answer
    A. Virtuelna (izvedena) tabela, vrsta potprograma u SQL
    Explanation
    A "pogled" (view) in SQL is a virtual (derived) table, which is a type of subroutine in SQL. It is not a type of index that is stored in RAM, an obligatory table in every database, or a relational database schema with a complete description of each table.

    Rate this question:

  • 8. 

    Naredbom: SELECT * FROM ImeTabele

    • Selektuju se ne NULL vrednosti iz tabele ImeTabele

    • Selektuje se primarni ključ tabele ImeTabele

    • Prikazuju se svi zapisi tabele ImeTabele

    • Prikazuju se NULL vrednosti tabele ImeTabele

    Correct Answer
    A. Prikazuju se svi zapisi tabele ImeTabele
    Explanation
    The correct answer is "Prikazuju se svi zapisi tabele ImeTabele". This is because the SQL query "SELECT * FROM ImeTabele" selects all records from the table "ImeTabele" and the asterisk (*) is used to represent all columns. Therefore, the query will display all the records in the table.

    Rate this question:

  • 9. 

    Koji je osnovni aplikacioni model u objektno orijentisanom programiranju: 

    • Jednoslojni

    • Dvoslojni

    • Troslojni

    • Četvoroslojni

    Correct Answer
    A. Troslojni
    Explanation
    The correct answer is "Troslojni". In object-oriented programming, the three-tier architecture is commonly used as the basic application model. This architecture separates the application into three layers: the presentation layer, the business logic layer, and the data access layer. The presentation layer is responsible for user interaction, the business logic layer handles the processing and calculations, and the data access layer manages the storage and retrieval of data. This three-tier architecture promotes modularity, reusability, and maintainability in software development.

    Rate this question:

  • 10. 

    Koje aplikacije su primer aplikacija koje imaju više od tri sloja: 

    • Web aplikacije

    • Poslovne aplikacije

    • Računovodstvene aplikacije

    • Bankarske aplikacije

    Correct Answer
    A. Web aplikacije
    Explanation
    Web aplikacije su primer aplikacija koje imaju više od tri sloja. Ove aplikacije obično imaju front-end sloj koji se koristi za interakciju sa korisnicima, back-end sloj koji se koristi za obradu podataka i poslovne logike, kao i bazu podataka koja se koristi za čuvanje podataka. Ovo je samo jedan primer aplikacija koje mogu imati više od tri sloja, ali web aplikacije su često najčešći primer takvih aplikacija.

    Rate this question:

  • 11. 

    Koji atributi nisu dobri kandidat za INDEX: 

    • Podatak tipa CHAR

    • Slika

    • Audio zapis

    • Video zapis

    • Podatak tipa INTEGER

    • Decimalni podatak

    Correct Answer(s)
    A. Slika
    A. Audio zapis
    A. Video zapis
    Explanation
    Images, audio files, and video files are not good candidates for indexing because they are typically large in size and require specialized methods for searching and retrieving. Indexing is more commonly used for text-based data, such as character data (CHAR), integer data, and decimal data, as these types of data can be easily sorted and searched using indexing techniques.

    Rate this question:

  • 12. 

    Naredba ROLLBACK je naredba za: 

    • Prevođenje tabele u jednu od zadatih normalnih formi

    • Odustajanje – poništavanje dejstva transakcije na BP koja je na disku

    • Brisanje LOG datoteke (svih aktivnosti koje su se desile nad objektima BP)

    • Potvrdu – prenos dejstva transakcije na BP koja je na disku

    Correct Answer
    A. Odustajanje – poništavanje dejstva transakcije na BP koja je na disku
    Explanation
    The ROLLBACK command is used to undo the effects of a transaction on a database that is stored on disk. It allows for the cancellation or reversal of changes made by a transaction, effectively reverting the database back to its previous state before the transaction was executed.

    Rate this question:

  • 13. 

    Upitni jezik je:

    • Jezik kojim se dodeljuju vrednosti atributima sa NULL vrednostima

    • Jezik kojim korisnici zahtevaju informacije iz BP

    • Jezik kojim se modeluje baza podataka

    • Jezik kojim se postavljaju ograničenja nad vrednostima atributa

    Correct Answer
    A. Jezik kojim korisnici zahtevaju informacije iz BP
    Explanation
    The correct answer is "jezik kojim korisnici zahtevaju informacije iz BP" because the question is asking about the query language, which is used by users to request information from a database.

    Rate this question:

  • 14. 

    Naredba za uklanjanje tabele iz BP je: 

    • PURGE TABLE Ime Tabele CLEAR

    • DELETE ImeTabele UNCONDITION

    • DROP TABLE ImeTabele

    • DELETE TABLE ImeTabele

    Correct Answer
    A. DROP TABLE ImeTabele
    Explanation
    The correct answer is "DROP TABLE ImeTabele". This is the correct SQL statement used to remove a table from a database. The other options are incorrect or incomplete SQL statements. The "PURGE TABLE Ime Tabele CLEAR" is not a valid SQL statement. The "DELETE ImeTabele UNCONDITION" is also not a valid SQL statement. The "DELETE TABLE ImeTabele" is an incomplete SQL statement as it is missing the "FROM" keyword. Therefore, the correct SQL statement to remove a table from a database is "DROP TABLE ImeTabele".

    Rate this question:

  • 15. 

    Serijsko izvršavanje transakcija označava da: 

    • Naredna transakcija započinje tek kada se prethodna završila

    • Se transakcije izvršavaju nad serijskim podacima u bazi podataka

    • Transakcija prvo vrši READ, a zatim WRITE naredbu

    • Transakcije prvo izvršavaju INSERT, zatim UPDATE, a tek na kraju DELETE

    Correct Answer
    A. Naredna transakcija započinje tek kada se prethodna završila
    Explanation
    Serijsko izvršavanje transakcija označava da naredna transakcija započinje tek kada se prethodna završila. This means that transactions are executed one after the other in a sequential manner, ensuring that each transaction is completed before the next one starts. This ensures consistency and avoids conflicts or inconsistencies that may arise from concurrent execution of transactions.

    Rate this question:

  • 16. 

    Unijska kompatibilnost je neophodna za sledeće operacije relacione algebre: 

    • Unija, presek, razlika

    • Unija, restrikcija, projekcija

    • Unija, dekartov proizvod, spajanje

    • Unija, projekcija, razlika

    Correct Answer
    A. Unija, presek, razlika
    Explanation
    The correct answer is "unija, presek, razlika" (union, intersection, difference). These operations are fundamental in relational algebra and require compatibility between the attributes of the relations involved. Union combines tuples from two relations, intersection finds common tuples between two relations, and difference finds tuples that are in one relation but not in the other. In order for these operations to be performed, the relations must have compatible attributes.

    Rate this question:

  • 17. 

    SQL naredba DELETE je: 

    • Naredba za uklanjanje redova iz tabele

    • Naredba za uklanjanje tabela iz baze podataka

    • Naredba za uklanjanje kolona u tabelu

    • Naredba za postavljanje atributa na NULL vrednosti

    Correct Answer
    A. Naredba za uklanjanje redova iz tabele
    Explanation
    The correct answer is "naredba za uklanjanje redova iz tabele." This is because the DELETE statement in SQL is used to remove rows from a table based on specified conditions. It allows you to delete specific records or all records from a table.

    Rate this question:

  • 18. 

    Izolacija (Isolation) je osobina transakcije koja kaže: 

    • Transakcija treba da prevede BP iz jednog u drugo konzistentno stanje

    • Skup aktivnosti nad BP po principu “sve ili ništa”; Ili su sve aktivnosti uspešno obavljene, ili BP ostaje nepromenjena

    • Kada se dve ili više transakcija izvršavaju istovremeno, njihovi efekti moraju biti međusobno izolovani

    • Kada se transakcija završi (potvrđene promene) njeni efekti ne mogu biti izgubljeni

    Correct Answer
    A. Kada se dve ili više transakcija izvršavaju istovremeno, njihovi efekti moraju biti međusobno izolovani
    Explanation
    The given correct answer states that in transaction processing, when multiple transactions are executed simultaneously, their effects must be isolated from each other. This means that the changes made by one transaction should not be visible to other transactions until the first transaction is completed and committed. This ensures that the data remains consistent and avoids any conflicts or interference between concurrent transactions.

    Rate this question:

  • 19. 

    LOG ili ŽURNAL (dnevnik transakcija) zapisuje za svaki objekat i transakciju koja je vršila ažuriranje: 

    • Vrednosti pre ažuriranja (before-image)

    • Vrednosti posle ažuriranja (after-image)

    • Vrednost u toku ažuriranja (medd-image)

    • Vrednosti tekućih promenljivih (image)

    Correct Answer(s)
    A. Vrednosti pre ažuriranja (before-image)
    A. Vrednosti posle ažuriranja (after-image)
    Explanation
    The correct answer is "Vrednosti pre ažuriranja (before-image), Vrednosti posle ažuriranja (after-image)". The question is asking for the information that is recorded in a LOG or ŽURNAL (transaction log) for each object and transaction that performed an update. The before-image refers to the values of the object before the update, while the after-image refers to the values after the update. Therefore, the correct answer includes these two options.

    Rate this question:

  • 20. 

    Serijsko izvršavanje transakcija označava da: 

    • Naredna transakcija započinje tek kada se prethodna završila

    • Se transakcije izvršavaju nad serijskim podacima u bazi podataka

    • Transakcija prvo vrši READ, a zatim WRITE naredbu

    • Transakcije prvo izvršavaju INSERT, zatim UPDATE, a tek na kraju DELETE

    Correct Answer
    A. Naredna transakcija započinje tek kada se prethodna završila
    Explanation
    Serijsko izvršavanje transakcija označava da naredna transakcija započinje tek kada se prethodna završila. This means that transactions are executed one after the other in a sequential manner, ensuring that each transaction is completed before the next one starts. This helps maintain data consistency and prevents conflicts or inconsistencies that could arise from concurrent execution of transactions.

    Rate this question:

  • 21. 

    Binarna operacija relacione algebre je: 

    • Operacija koja se izvršava nad dva reda u relaciji

    • Operacija nad dve relacije

    • Operacija nad dva atributa u relaciji

    • Operacija koja kao rezultat daje relaciju sa dva atributa

    Correct Answer
    A. Operacija nad dve relacije
    Explanation
    The correct answer is "operacija nad dve relacije." This is because a binary operation in relational algebra is an operation that is performed on two relations. It involves combining or manipulating two relations to produce a new relation as a result. Therefore, the correct answer is the one that mentions an operation on two relations.

    Rate this question:

  • 22. 

    Redudansa u relaciji je: 

    • Mogućnost da u jednoj relaciji više atributa mogu biti strani ključevi na različite relacije

    • Pojava da je primarni ključ sastavljen od više atributa

    • Pojavljivanje NULL vrednosti za pojedine atribute

    • Višestruko ponavljanje vrednosti jednog atributa

    Correct Answer
    A. Višestruko ponavljanje vrednosti jednog atributa
    Explanation
    Redundancy in a relation refers to the multiple occurrences of a single attribute value. This means that within a relation, there are multiple instances where the same attribute value is repeated. Redundancy can lead to data inconsistency and inefficiency in storage and retrieval. It is generally desirable to minimize redundancy in a database design to ensure data integrity and optimize performance.

    Rate this question:

  • 23. 

    Funkcijska zavisnost je tranzitivna ako: 

    • Postoji neko Z, različito od X i Y za koje važi: X®Z i Z®Y

    • Važi Z®Y odnosno: X®Y Ù $ØZ (ZÌX Ù Z®Y)

    • Važi Z®Y odnosno: X®Y Ù $Z (ZÌX Ù Z®Y)

    • Postoji X®Y takvo da je YÍX

    Correct Answer
    A. Postoji neko Z, različito od X i Y za koje važi: X®Z i Z®Y
    Explanation
    There exists some Z, different from X and Y, such that X®Z and Z®Y. This means that there is a functional dependency between X and Z, and another functional dependency between Z and Y. Therefore, the functional dependency between X and Y can be inferred transitivity.

    Rate this question:

  • 24. 

    Koje mesto ima aplikacija, a koje SUBP u klijent server paradigmi: 

    • Aplikacija predstavlja serversku, a SUBP klijentsku stranu

    • Aplikacija predstavlja klijentsku, a SUBP serversku stranu

    • I aplikacija i SUBP predstavljaju serversku stranu

    • I aplikacija i SUBP predstavljaju klijentsku stranu

    Correct Answer
    A. Aplikacija predstavlja klijentsku, a SUBP serversku stranu
    Explanation
    The correct answer is that the application represents the client side, while SUBP represents the server side. This means that the application interacts with the user and sends requests to the server, while SUBP processes those requests on the server and sends back the response to the application.

    Rate this question:

  • 25. 

    Šta sadrži korisnički interfejs kod desktop i Web aplikacija: 

    • To su uokvireni prozori sa naslovnom linijom, kao i kontrole za interakciju sa korisnikom

    • Sardrži polja za prihvat isključivo numeričkih podataka

    • Sadrži polja za prihvat alfa-numeričkih karaktera

    • To su karakteristične maske za informisanje korisnika

    Correct Answer
    A. To su uokvireni prozori sa naslovnom linijom, kao i kontrole za interakciju sa korisnikom
    Explanation
    The correct answer is "To su uokvireni prozori sa naslovnom linijom, kao i kontrole za interakciju sa korisnikom." This answer explains that the user interface in desktop and web applications consists of framed windows with a title bar, as well as controls for interacting with the user.

    Rate this question:

  • 26. 

    Šta je ASP? 

    • Active Server Pages, Microsoft tehnologija za generisaje dinamičkih Web stranica

    • Address Server Pasive, Microsoft tehnologija za generisaje pasivnih Web stranica

    • Asinhronous System Plane, Java tehnologija za generisanje dinamičkih Web strana

    • Annonimous Server Plane, Univerzalna Java tehnologija za generisanje i prenos Web strana

    Correct Answer
    A. Active Server Pages, Microsoft tehnologija za generisaje dinamičkih Web stranica
    Explanation
    ASP (Active Server Pages) is a Microsoft technology used for generating dynamic web pages. It allows for the execution of server-side scripts that can interact with databases and other server resources to generate content that is personalized and responsive to user input. ASP is commonly used in conjunction with HTML, CSS, and JavaScript to create interactive web applications.

    Rate this question:

  • 27. 

    Kod brisanja (uklanjanja) tabele iz BP neophodno je da: 

    • Se sačuvaju vrednosti atributa koji je primarni ključ

    • Se prethodno izvrši uklanjanje atributa

    • Se u tabelu unesu NULL vrednosti

    • Tabela bude prazna

    Correct Answer
    A. Tabela bude prazna
    Explanation
    When deleting (removing) a table from a database, it is necessary for the table to be empty.

    Rate this question:

  • 28. 

    Osnovne kontrole pristupa podacima su: 

    • Ko može da pristupa BP

    • Čemu može da pristupa u BP

    • Šta može da radi sa onim čemu može da pristupi

    • Vreme u kom može da se pristupa podacima

    • Broj pristupa podacima

    Correct Answer(s)
    A. Ko može da pristupa BP
    A. Čemu može da pristupa u BP
    A. Šta može da radi sa onim čemu može da pristupi
    Explanation
    The correct answer includes the basic access controls to data, which are: who can access the database, what they can access within the database, and what actions they can perform on the data they have access to. It does not include the time in which data can be accessed or the number of accesses to the data.

    Rate this question:

  • 29. 

    Problem nepotvrđenih promena (“prljavo čitanje“) u BP nastaje:

    • Kada transakcija 2 čita (menja) podatak, a transakcija 1 ažurira isti podatak a još nije izdata potvrda

    • Kada kada se izvršavaju dve ili više transakcija

    • Kada transakcije nisu započele da se izvršavaju naredbom BEGIN TRANSACTION

    • Kada se transakcija 1 i transakcija 2 zavreše naredbom ROLLBACK

    Correct Answer
    A. Kada transakcija 2 čita (menja) podatak, a transakcija 1 ažurira isti podatak a još nije izdata potvrda
    Explanation
    The correct answer states that the problem of uncommitted changes, also known as "dirty read," occurs when transaction 2 reads (modifies) data while transaction 1 updates the same data and has not yet issued a commit. This situation can lead to inconsistencies and incorrect results if transaction 1 decides to rollback after transaction 2 has already read the uncommitted changes.

    Rate this question:

  • 30. 

    Šta je JSP? 

    • Java Server Pages, Java tehnologija za generisaje dinamičkih Web stranica

    • Journal Server Pages, Microsoft tehnologija za generisaje dinamičkih Web stranica

    • Join System Plane, Univerzalna tehnologija za generisanje Web stranica

    • Java System Plane, Java tehnologija za planiranje i generisanje aktivnih Web stranica

    Correct Answer
    A. Java Server Pages, Java tehnologija za generisaje dinamičkih Web stranica
    Explanation
    JSP stands for Java Server Pages, which is a Java technology used for generating dynamic web pages. It allows developers to embed Java code within HTML pages, enabling the creation of dynamic content. JSP is widely used in web development to create interactive and data-driven websites.

    Rate this question:

  • 31. 

    Naredbe ažuriranja se odnose: 

    • Na celu bazu podataka, ako ispunjava tražene uslove

    • Na dve tabele koje su povezane istim atributima

    • Uvek na jednu tabelu

    • Na više tabela odjednom

    Correct Answer
    A. Uvek na jednu tabelu
    Explanation
    The correct answer is "always on one table." This means that update statements in a database are always performed on a single table, rather than multiple tables or the entire database.

    Rate this question:

  • 32. 

    Ako se korisniku ukloni CONNECT opšte pravo: 

    • Ostaju mu ostala posebna prava koja su mu dodeljena

    • Ostaje mu pravo pregledanja tabela

    • Uklanja se i korisnik i on se više ne može najavljivati za rad sa BP

    • Korisnik ne može da ažurira BP, ali može da postavlja SELECT upite

    Correct Answer
    A. Uklanja se i korisnik i on se više ne može najavljivati za rad sa BP
    Explanation
    If the CONNECT privilege is removed from the user, they will no longer be able to log in and work with the database. This means that the user will be removed and they will not be able to announce their presence for working with the database anymore.

    Rate this question:

  • 33. 

    Nakon dekompozicije, polazne funkcijske zavisnosti (koje su važile u polazno šemi relacije): 

    • Treba da budu sačuvane

    • Treba da budu izgubljene

    • Zamenjuju se novim zavisnostima

    • Nemaju uticaja na kompletnu šemu relacione baze podataka

    Correct Answer
    A. Treba da budu sačuvane
    Explanation
    After decomposition, the initial functional dependencies should be preserved.

    Rate this question:

  • 34. 

    SQL naredba INSERT je: 

    • Naredba za umetanje nove tabele (veza) između dve postojeće tabele

    • Naredba za unošenje novih kolona u tabelu

    • Naredba za unošenje novih redova u tabelu

    • Naredba za postavljanje upita nad redovima tabele

    Correct Answer
    A. Naredba za unošenje novih redova u tabelu
    Explanation
    The correct answer is that the SQL INSERT statement is a command used to insert new rows into a table. It allows for the addition of new data into an existing table by specifying the table name and the values to be inserted into each column. This statement is commonly used to add new records to a database table.

    Rate this question:

  • 35. 

    Naredba COMMIT je naredba za: 

    • Potvrdu – prenos dejstva transakcije na BP koja je na disku

    • Prevođenje tabele u jednu od zadatih normalnih formi

    • Otpočinjanje izvršavanja jedne transakcije

    • Odustajanje – poništavanje dejstva transakcije na BP koja je na disku

    Correct Answer
    A. Potvrdu – prenos dejstva transakcije na BP koja je na disku
    Explanation
    The correct answer is "Potvrdu – prenos dejstva transakcije na BP koja je na disku" which translates to "Confirmation - transferring the effects of a transaction to the disk database". This suggests that the COMMIT command is used to confirm and permanently save the changes made in a transaction to the disk-based database. It ensures that the changes are successfully applied and persisted in the database.

    Rate this question:

  • 36. 

    Mrtvi čvor (dead lock) u izvršavanju dve transakcije nastaje: 

    • Kada se baza podataka dovede u nekonzistentno stanje

    • Kada se transakcija završi sa ROLLBACK-om

    • Kada se transakcija završi sa COMMIT, a rezultati promena nisu bili dobri

    • Kada obe transakcije čekaju da ona druga oslobodi objekat

    Correct Answer
    A. Kada obe transakcije čekaju da ona druga oslobodi objekat
    Explanation
    A deadlock in the execution of two transactions occurs when both transactions are waiting for the other to release a resource. This means that both transactions are stuck and cannot proceed further, leading to a deadlock situation.

    Rate this question:

  • 37. 

    Unarna operacija relacione algebre je: 

    • Operacija nad jednim atributom u relaciji

    • Operacija koja kao rezultat daje relaciju sa jednim atributom

    • Operacija koja se izvršava nad jednim redom u relaciji

    • Operacija nad jednom relacijom

    Correct Answer
    A. Operacija nad jednom relacijom
    Explanation
    The correct answer is "operacija nad jednom relacijom" which translates to "operation on one relation." This means that the operation is performed on a single relation, rather than on an attribute or a row within a relation.

    Rate this question:

  • 38. 

    UNIQUE klauzula kao ograničenje kolone označava : 

    • Data kolona je jedinstven strani ključ

    • Data kolona ima iste vrednosti u svakom zapisu

    • U datoj koloni nije dozvoljeno ponavljanje istih vrednosti

    • Data kolona je primarni ključ

    Correct Answer
    A. U datoj koloni nije dozvoljeno ponavljanje istih vrednosti
    Explanation
    The correct answer is "U datoj koloni nije dozvoljeno ponavljanje istih vrednosti." This is because the UNIQUE clause in a database table column ensures that each value in that column is unique and cannot be repeated.

    Rate this question:

  • 39. 

    SQL naredba UPDATE je: 

    • Naredba za izmenu definicije tabele (veze) između dve postojeće tabele

    • Naredba za unošenje novih kolona u tabelu

    • Naredba za postavljanje tačnog vremena i datuma

    • Naredba za izmenu redova u tabelu

    Correct Answer
    A. Naredba za izmenu redova u tabelu
    Explanation
    The UPDATE command in SQL is used to modify or change the existing rows in a table. It allows for updating specific columns or values in a row based on certain conditions or criteria. This command does not alter the table definition or add new columns, but rather focuses on updating the data within the table.

    Rate this question:

  • 40. 

    Atomnost (Atomicity) je osobina transakcije koja kaže: 

    • Transakcija treba da prevede BP iz jednog u drugo konzistentno stanje

    • Skup aktivnosti nad BP po principu “sve ili ništa”; Ili su sve aktivnosti uspešno obavljene, ili BP ostaje nepromenjena

    • Kada se dve ili više transakcija izvršavaju istovremeno, njihovi efekti moraju biti međusobno izolovani

    • Kada se transakcija završi (potvrđene promene) njeni efekti ne mogu biti izgubljeni

    Correct Answer
    A. Skup aktivnosti nad BP po principu “sve ili ništa”; Ili su sve aktivnosti uspešno obavljene, ili BP ostaje nepromenjena
    Explanation
    The explanation for the given correct answer is that atomicity refers to the property of a transaction where a set of activities over a database should be performed as a whole or not at all. This means that either all the activities within a transaction are successfully completed, or the database remains unchanged. In other words, if any part of the transaction fails, the entire transaction is rolled back, ensuring that the database remains in a consistent state. This ensures that the effects of the transaction are isolated and that once a transaction is completed, its effects cannot be lost.

    Rate this question:

  • 41. 

    Šta je transakcija: 

    • Šema relacije koja ima slabost koja se manifestuje anomalijama ažuriranja

    • Vrsta SQL upita koji se izvršava nad više tabela

    • Logička jedinica posla koja se izvršava do kraja ili se poništava u celini

    • Jedna od operacija u relacionoj algebri, a odvija se nad dve ili više tabela

    Correct Answer
    A. Logička jedinica posla koja se izvršava do kraja ili se poništava u celini
  • 42. 

    Zbog mogućih problema kod izvršavanja transakcija SUBP mora: 

    • Da vodi računa o definiciji šema relacija

    • Povremeno da vrši brisanja u tabelama

    • Da pravi rezervne kopije

    • Da vodi dnevnik ažuriranja

    Correct Answer(s)
    A. Da pravi rezervne kopije
    A. Da vodi dnevnik ažuriranja
    Explanation
    The correct answer is that SUBP must make backup copies and maintain an update log due to possible transaction execution problems. This is because backup copies help in restoring the data in case of any failures or errors, ensuring data integrity and availability. The update log keeps track of all the changes made to the data, allowing for easy recovery and rollback if necessary. Both these measures are essential for maintaining the reliability and consistency of the SUBP system.

    Rate this question:

  • 43. 

    Kojim naredbama se može završiti jedna transakcija: 

    • COMMIT

    • ROLLBACK

    • REVOKE

    • RESTORE

    Correct Answer(s)
    A. COMMIT
    A. ROLLBACK
    Explanation
    The correct answer is COMMIT and ROLLBACK. These two commands are used in database transactions. COMMIT is used to permanently save the changes made in a transaction, while ROLLBACK is used to undo the changes made in a transaction and restore the database to its previous state. REVOKE and RESTORE are not transaction-ending commands.

    Rate this question:

  • 44. 

    Ako jedna transakcija postavi XL katanac (exclusive lock ili write lock

    • Druga transakcija može da postavi i SL i XL katanac

    • Druga transakcija ne može da postavi ni jedan svoj katanac

    • Druga transakcija može da postavi XL katanac

    • Druga transakcija može da postavi SL katanac

    Correct Answer
    A. Druga transakcija može da postavi SL katanac
    Explanation
    If one transaction sets an XL lock (exclusive lock or write lock), the second transaction can set an SL lock (shared lock). This means that the second transaction can read the data but cannot modify it.

    Rate this question:

  • 45. 

    Na koji način se razrešava mrtvi čvor (dead lock) u izvršavanju dve transakcije nastaje: 

    • Intervencijom administratora

    • Istekom vremenskog ograničenja za bar jednu transakciju

    • Trajnim gubitkom podataka u bazi podataka na hard disku

    • Prepisivanjem podataka iz LOG fajla (before-image)

    Correct Answer
    A. Istekom vremenskog ograničenja za bar jednu transakciju
    Explanation
    A dead lock occurs when two transactions are waiting for each other to release resources, causing them to be stuck indefinitely. One way to resolve a dead lock is by setting a time limit for at least one of the transactions. If the time limit expires and the transaction has not completed, it will be terminated, allowing the other transaction to proceed and resolve the dead lock.

    Rate this question:

  • 46. 

    Šta su integrisana okruzenja: 

    • Sistemi u kojima su sve objedinjene funkcije na serverskoj strani

    • Sistemi u kojima su sve objedinjene funkcije na klijentskoj strani

    • Sistemi u kojima su objedinjene funkcije klijentske i serverske strane

    • Sistemi u kojima nije potrebno prepoznavati klijentske i serverske funkcije

    Correct Answer
    A. Sistemi u kojima su objedinjene funkcije klijentske i serverske strane
    Explanation
    The correct answer suggests that integrated environments are systems where the functions of both the client and server sides are combined. This means that these systems have the capability to handle and perform functions from both the client and server sides, eliminating the need to differentiate between client and server functions.

    Rate this question:

  • 47. 

    Koja vrsta pristupa podacima je primenjena u Access aplikacijama: 

    • Pristup podacima iz prezentacionog sloja

    • Pristup podacima iz sloja poslovne logike

    • Pristup iz sloja podataka

    • Pristup podacima iz fizičkog sloja

    Correct Answer
    A. Pristup podacima iz prezentacionog sloja
    Explanation
    The correct answer is "Pristup podacima iz prezentacionog sloja." This means that the type of data access used in Access applications is from the presentation layer. In other words, data is accessed from the user interface or front-end of the application. This could involve retrieving, displaying, and manipulating data that is presented to the user.

    Rate this question:

  • 48. 

    Šta se nalazi unutar tagova <%..%> u ASP i JSP stranicama? 

    • To su tagovi koji sadrže programski kod unutar kog se mogu smestiti SQL naredbe

    • To su tagovi posle kojih se navodi slobodan tekst - komenetar

    • Nalazi se numerička vrednost u slobodnom formatu za ispis

    • Nalaze se naredbe za deklarisanje statičkih i dinamičkih promenljivih i naredbe za rad sa fajlovima

    Correct Answer
    A. To su tagovi koji sadrže programski kod unutar kog se mogu smestiti SQL naredbe
    Explanation
    The given answer states that the tags <%..%> in ASP and JSP pages contain program code in which SQL commands can be placed. This implies that these tags are used to embed SQL commands within the program code.

    Rate this question:

  • 49. 

    Ako se neka kolona označi kao PRIMARY KEY to znači: 

    • Data kolona je primarni ključ, ali je dozvoljeno ponavljanje vrednosti

    • Data kolona je primarni ključ, nije dozvoljeno ponavljanje vrednosti, ali može se uneti NULL vrednost ako to nije u suprotnosti sa referencijalnim integritetom

    • Kolona je primarni ključ, nije dozvoljena NULL vrednost, niti ponavljanje vrednosti

    • Kolona je primarni ključ, numeričkog je tipa i nije dozvoljeno unošenje NULL vrednosti

    Correct Answer
    A. Kolona je primarni ključ, nije dozvoljena NULL vrednost, niti ponavljanje vrednosti
    Explanation
    If a column is marked as PRIMARY KEY, it means that the column is the primary key of the table, and it is not allowed to have NULL values or duplicate values.

    Rate this question:

Quiz Review Timeline (Updated): Jul 22, 2024 +

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

  • Current Version
  • Jul 22, 2024
    Quiz Edited by
    ProProfs Editorial Team
  • Feb 13, 2015
    Quiz Created by
    Acabarbul
Back to Top Back to top
Advertisement