Baze Podataka Ispit

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

SettingsSettingsSettings
Baze Podataka Ispit - Quiz

.


Questions and Answers
  • 1. 

    Relaciona algebra je:

    • A.

      Skup operatora za rad sa relacijama, a rezultati operacija su takođe relacije

    • B.

      Skup relacija nad kojima se vrše algebarske operacije nad atributima

    • C.

      Skup algebarskih izraza za sabiranje, oduzimanje, množenje i deljenje vrednosti atributa u relacijama

    • D.

      Skup operacija za kreiranje relacija i za postavljanje ograničenja nad atributima putem relacione algebre

    Correct Answer
    A. Skup operatora za rad sa relacijama, a rezultati operacija su takođe relacije
    Explanation
    Relational algebra is a set of operators used to work with relations, and the results of these operations are also relations.

    Rate this question:

  • 2. 

    Relaciona algebra je:

    • A.

      Osnova za postavljanje ograničenja između relacija

    • B.

      Osnova za postavljanje algebraskih ograničenja nad atributima

    • C.

      Osnova za upitne jezike koje koriste ljudi

    • D.

      Osnova za matematičko modelovanje relacija

    Correct Answer
    C. Osnova za upitne jezike koje koriste ljudi
  • 3. 

    Upitni jezik je:

    • A.

      Jezik kojim se dodeljuju vrednosti atributima sa NULL vrednostima

    • B.

      Jezik kojim korisnici zahtevaju informacije iz BP

    • C.

      Jezik kojim se modeluje baza podataka

    • D.

      Jezik kojim se postavljaju ograničenja nad vrednostima atributa

    Correct Answer
    B. 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:

  • 4. 

    Unarna operacija relacione algebre je: 

    • A.

      Operacija nad jednim atributom u relaciji

    • B.

      Operacija koja kao rezultat daje relaciju sa jednim atributom

    • C.

      Operacija koja se izvršava nad jednim redom u relaciji

    • D.

      Operacija nad jednom relacijom

    Correct Answer
    D. 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:

  • 5. 

    Binarna operacija relacione algebre je: 

    • A.

      Operacija koja se izvršava nad dva reda u relaciji

    • B.

      Operacija nad dve relacije

    • C.

      Operacija nad dva atributa u relaciji

    • D.

      Operacija koja kao rezultat daje relaciju sa dva atributa

    Correct Answer
    B. 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:

  • 6. 

    Restrikcija je operacija relacione algebre koja: 

    • A.

      Iz polazne relacije po zadatom kriterijumu izdvaja podskup n-torki

    • B.

      Iz polazne relacije po zadatom skupu atributa formira novu relaciju kao skup n-torki nad tim atributima

    • C.

      Iz dve polazne relacije formira novu koja sadrži sve n-torke prve relacije koje se ne nalaze u drugoj relaciji

    • D.

      Iz dve polazne relacije formira novu koja sadrži sve n-torke prve relacije koje se nalaze u drugoj relaciji

    Correct Answer
    A. Iz polazne relacije po zadatom kriterijumu izdvaja podskup n-torki
    Explanation
    The correct answer states that a restriction operation in relational algebra selects a subset of tuples from the source relation based on a given criterion. This means that the operation filters out tuples that do not meet the specified condition, resulting in a new relation with a subset of tuples.

    Rate this question:

  • 7. 

    Projekcija je operacija relacione algebre koja: 

    • A.

      Iz polazne relacije po zadatom kriterijumu izdvaja podskup n-torki

    • B.

      Iz polazne relacije po zadatom skupu atributa formira novu relaciju kao skup n-torki nad tim atributima

    • C.

      Iz dve polazne relacije formira novu koja sadrži sve n-torke prve relacije koje se ne nalaze u drugoj relaciji

    • D.

      Iz dve polazne relacije formira novu koja sadrži sve n-torke prve relacije koje se nalaze u drugoj relaciji

    Correct Answer
    B. Iz polazne relacije po zadatom skupu atributa formira novu relaciju kao skup n-torki nad tim atributima
    Explanation
    The correct answer states that projection is an operation in relational algebra that forms a new relation by selecting a subset of tuples from the source relation based on a given set of attributes. This means that the projection operation extracts specific attributes from the source relation and creates a new relation with only those attributes. The resulting relation will consist of tuples that contain values only for the selected attributes.

    Rate this question:

  • 8. 

    Razlika je operacija relacione algebre koja: 

    • A.

      Iz polazne relacije po zadatom kriterijumu izdvaja podskup n-torki

    • B.

      Iz polazne relacije po zadatom skupu atributa formira novu relaciju kao skup n-torki nad tim atributima

    • C.

      Iz dve polazne relacije formira novu koja sadrži sve n-torke prve relacije koje se ne nalaze u drugoj relaciji

    • D.

      Iz dve polazne relacije formira novu koja sadrži sve n-torke prve relacije koje se nalaze u drugoj relaciji

    Correct Answer
    C. Iz dve polazne relacije formira novu koja sadrži sve n-torke prve relacije koje se ne nalaze u drugoj relaciji
    Explanation
    The correct answer states that the difference operation in relational algebra forms a new relation by including all tuples from the first relation that are not present in the second relation. This means that the resulting relation will only contain the tuples that are unique to the first relation and do not appear in the second relation.

    Rate this question:

  • 9. 

    Presek je operacija relacione algebre koja:

    • A.

      Iz polazne relacije po zadatom kriterijumu izdvaja podskup n-torki

    • B.

      Iz polazne relacije po zadatom skupu atributa formira novu relaciju kao skup n-torki nad tim atributima

    • C.

      Iz dve polazne relacije formira novu koja sadrži sve n-torke prve relacije koje se ne nalaze u drugoj relaciji

    • D.

      Iz dve polazne relacije formira novu koja sadrži sve n-torke prve relacije koje se nalaze u drugoj relaciji

    Correct Answer
    D. Iz dve polazne relacije formira novu koja sadrži sve n-torke prve relacije koje se nalaze u drugoj relaciji
    Explanation
    The correct answer states that the operation of Presek in relational algebra forms a new relation by combining two input relations and including only the tuples from the first relation that are also present in the second relation. This means that the resulting relation will contain only the tuples that have a matching value in both relations.

    Rate this question:

  • 10. 

    Unija je operacija relacione algebre koja:

    • A.

      Iz dve polazne relacije formira novu koja sadrži izdvaja iste n-torke iz obe relacije

    • B.

      Iz dve polazne relacije formira novu koja sadrži sve atribute iz obe relacije, ali se oni ne mogu ponoviti

    • C.

      Iz dve polazne relacije formira novu koja sadrži sve n-torke prve relacije koje se ne nalaze u drugoj relaciji

    • D.

      Iz dve polazne relacije formira novu koja sadrži sve n-torke iz obe relacije

    Correct Answer
    D. Iz dve polazne relacije formira novu koja sadrži sve n-torke iz obe relacije
    Explanation
    The correct answer is that the union operation in relational algebra forms a new relation that contains all tuples from both input relations. This means that the resulting relation will include all tuples from both input relations without any duplicates.

    Rate this question:

  • 11. 

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

    • A.

      Unija, presek, razlika

    • B.

      Unija, restrikcija, projekcija

    • C.

      Unija, dekartov proizvod, spajanje

    • D.

      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:

  • 12. 

    Posle operacije selekcije, u novonastaloj relaciji: 

    • A.

      Broj n-torki je isti kao kod polazne relacije

    • B.

      Broj n-torki može biti veći od broja n-torki polazne relacije, ako ima puno duplikata

    • C.

      Broj n-torki je jednak broju atributa

    • D.

      Broj n-torki je jednak ili manji od broja n-torki polazne relacije

    Correct Answer
    D. Broj n-torki je jednak ili manji od broja n-torki polazne relacije
    Explanation
    After the selection operation, the number of tuples in the resulting relation can be equal to or less than the number of tuples in the original relation. This is because the selection operation filters out certain tuples based on a specified condition, so it is possible that some tuples are removed from the original relation, resulting in a smaller number of tuples in the resulting relation.

    Rate this question:

  • 13. 

    Posle operacije selekcije, u novonastaloj relaciji:

    • A.

      Broj atributa je manji ili jednak broju atributa polazne relacije

    • B.

      Broj atributa zavisi od uslova selekcije

    • C.

      Broj atributa se uvećava

    • D.

      Broj atributa je jednak broju atributa polazne relacije

    Correct Answer
    D. Broj atributa je jednak broju atributa polazne relacije
    Explanation
    After performing a selection operation, the number of attributes in the resulting relation remains the same as the number of attributes in the original relation. This means that the selection operation does not affect the number of attributes in the relation, and all the attributes from the original relation are retained in the resulting relation.

    Rate this question:

  • 14. 

    Posle operacije projekcije, u novonastaloj relaciji:

    • A.

      Broj atributa je manji ili jednak broju atributa polazne relacije

    • B.

      Broj atributa zavisi od uslova selekcije

    • C.

      Broj atributa može biti i veći od broja atributa polazne relacije, ako nema duplikata

    • D.

      Broj atributa je jednak broju atributa polazne relacije

    Correct Answer
    A. Broj atributa je manji ili jednak broju atributa polazne relacije
    Explanation
    After performing the projection operation, the number of attributes in the resulting relation will be equal to or smaller than the number of attributes in the original relation. This is because the projection operation eliminates duplicate tuples and selects only the specified attributes, which may result in a reduction in the number of attributes.

    Rate this question:

  • 15. 

    Posle operacije projekcije, u novonastaloj relaciji: 

    • A.

      Broj n-torki je isti kao kod polazne relacije

    • B.

      Broj n-torki može biti veći od broja n-torki polazne relacije, ako ima puno duplikata

    • C.

      Broj n-torki je jednak ili manji od broja n-torki polazne relacije

    • D.

      Broj n-torki je jednak broju atributa

    Correct Answer
    C. Broj n-torki je jednak ili manji od broja n-torki polazne relacije
    Explanation
    After performing the projection operation, the number of tuples in the resulting relation can either be the same or smaller than the number of tuples in the original relation. This is because the projection operation removes duplicate tuples from the original relation. Therefore, if there are duplicates in the original relation, the resulting relation will have fewer tuples. If there are no duplicates, the number of tuples will remain the same.

    Rate this question:

  • 16. 

    SQL naredba za definisanje (DDL) je: 

    • A.

      GRANT

    • B.

      INSERT

    • C.

      CREATE

    • D.

      SELECT

    • E.

      UPDATE

    • F.

      DELETE

    Correct Answer
    C. CREATE
    Explanation
    The correct answer is "CREATE" because in SQL, the CREATE statement is used to define or create database objects such as tables, views, indexes, and procedures. It is a Data Definition Language (DDL) command that allows users to create new database objects in the database schema. The CREATE statement is essential for setting up the structure and layout of the database before any data can be inserted, selected, updated, or deleted.

    Rate this question:

  • 17. 

    SQL naredba za dodelu privilegija korisnicima je: 

    • A.

      SELECT

    • B.

      UPDATE

    • C.

      DELETE

    • D.

      GRANT

    • E.

      CREATE

    • F.

      INSERT

    Correct Answer
    D. 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:

  • 18. 

    Obeležiti šta sve sadrže SQL naredba za kreiranje tabela: 

    • A.

      Ime tabele

    • B.

      Ime svake kolone

    • C.

      Ip svake kolone

    • D.

      Ograničenja za kolone

    • E.

      Ograničenja za kolone

    • F.

      Dodela privilegija korisnicima

    • G.

      Upit za dobijanje informacija

    Correct Answer(s)
    A. Ime tabele
    B. Ime svake kolone
    C. Ip svake kolone
    D. Ograničenja za kolone
    E. Ograničenja za kolone
    Explanation
    The correct answer includes all the essential elements of an SQL command for creating tables. It mentions the name of the table, the name of each column, the data type of each column, the constraints for the columns, and the assignment of privileges to users. It also includes the query for obtaining information.

    Rate this question:

  • 19. 

    UNIQUE klauzula kao ograničenje kolone označava : 

    • A.

      Data kolona je jedinstven strani ključ

    • B.

      Data kolona ima iste vrednosti u svakom zapisu

    • C.

      U datoj koloni nije dozvoljeno ponavljanje istih vrednosti

    • D.

      Data kolona je primarni ključ

    Correct Answer
    C. 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:

  • 20. 

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

    • A.

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

    • B.

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

    • C.

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

    • D.

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

    Correct Answer
    C. 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:

  • 21. 

    Šta znači sledeće ograničenje pri kreiranju tabele: ImeKolone REFERENCES ImeTabele 

    • A.

      Ta kolona je strani ključ u odnosu na tabelu ImeTabele

    • B.

      Data kolona je primarni ključ tabele ImeTabele

    • C.

      Data kolona je ujedno strani i primarni ključ tabele ImeTabele, na koju se može referencirati

    • D.

      U toj koloni se mogu unositi atributi koji su VARCHAR tipa, za unos imena

    Correct Answer
    A. Ta kolona je strani ključ u odnosu na tabelu ImeTabele
    Explanation
    The given correct answer states that the column is a foreign key in relation to the table ImeTabele. This means that the column in question is used to establish a relationship with another table by referencing its primary key.

    Rate this question:

  • 22. 

    Naredba za uklanjanje tabele iz BP je: 

    • A.

      PURGE TABLE Ime Tabele CLEAR

    • B.

      DELETE ImeTabele UNCONDITION

    • C.

      DROP TABLE ImeTabele

    • D.

      DELETE TABLE ImeTabele

    Correct Answer
    C. 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:

  • 23. 

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

    • A.

      Se sačuvaju vrednosti atributa koji je primarni ključ

    • B.

      Se prethodno izvrši uklanjanje atributa

    • C.

      Se u tabelu unesu NULL vrednosti

    • D.

      Tabela bude prazna

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

    Rate this question:

  • 24. 

    INDEX je : 

    • A.

      Pomoćna datoteka za ubrzanje pristupa podacima u osnovnoj datoteci

    • B.

      Veza između tabela koja se uspostavlja preko primarnog i stranog ključa

    • C.

      Vrednost atributa koja se inkrementalno menja

    • D.

      Vrsta pogleda (VIEW) koji se permanentno pamti u bazi podataka

    Correct Answer
    A. Pomoćna datoteka za ubrzanje pristupa podacima u osnovnoj datoteci
    Explanation
    The correct answer is "pomoćna datoteka za ubrzanje pristupa podacima u osnovnoj datoteci" which translates to "an auxiliary file for accelerating access to data in the main file". This explanation suggests that an index is a separate file that helps speed up the retrieval of data from the main file by providing a quicker way to locate specific information.

    Rate this question:

  • 25. 

    Koji atributi nisu dobri kandidat za INDEX: 

    • A.

      Podatak tipa CHAR

    • B.

      Slika

    • C.

      Audio zapis

    • D.

      Video zapis

    • E.

      Podatak tipa INTEGER

    • F.

      Decimalni podatak

    Correct Answer(s)
    B. Slika
    C. Audio zapis
    D. 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:

  • 26. 

    Kod uklanjanja indeksa (DROP INDEX ImeIndeksa) karakteristično je sledeće: 

    • A.

      Indeks se može ukloniti bilo kada i bez obzira na sadržaj svoje tabele

    • B.

      Indeks se može ukloniti samo kada je prazan

    • C.

      Indeks se može ukloniti kada se uklone kolone iz tabele na koju se indeksira

    • D.

      Indeks se ne može ukoniti dok se ne ukloni tabela

    Correct Answer
    A. Indeks se može ukloniti bilo kada i bez obzira na sadržaj svoje tabele
    Explanation
    The correct answer is that an index can be removed at any time and regardless of the content of its table. This means that the index can be dropped even if the table is not empty or if there are still columns indexed by it. There is no requirement to remove the table before removing the index.

    Rate this question:

  • 27. 

    Izmena definicije postojeće tabele vrši se SQL naredbom: 

    • A.

      SELECT

    • B.

      UPDATE

    • C.

      ALTER

    • D.

      GRANT

    • E.

      IZMENA

    Correct Answer
    C. ALTER
    Explanation
    The correct answer is "ALTER". ALTER is the SQL command used to modify the structure or definition of an existing table. It allows you to add, modify, or delete columns, constraints, and other attributes of a table. With the ALTER command, you can also rename a table or change its data type. This command is essential for making changes to an existing table without having to recreate it from scratch.

    Rate this question:

  • 28. 

    Pogled (VIEW) je: 

    • A.

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

    • B.

      Obavezna tabela u svakoj bazi podataka

    • C.

      Virtuelna (izvedena) tabela, vrsta potprograma u SQL

    • D.

      Šema relacione baze podataka sa potpunim opisom svake tabele

    Correct Answer
    C. 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:

  • 29. 

    Obeležiti sve prednosti upotrebe pogleda (VIEW): 

    • A.

      Smanjuje se vreme za kreiranje baze podataka

    • B.

      Izbegava se upotreba slabih ključeva

    • C.

      Jednostavnost korišćenja, uprošćavaju se upiti

    • D.

      Tajnost, mehanizam za kontrolu pristupa podacima

    • E.

      Jednom kreiran može da se koristi u podupitima

    Correct Answer(s)
    C. Jednostavnost korišćenja, uprošćavaju se upiti
    D. Tajnost, mehanizam za kontrolu pristupa podacima
    E. Jednom kreiran može da se koristi u podupitima
    Explanation
    The advantages of using a view include simplifying queries, ensuring data confidentiality through access control mechanisms, and the ability to reuse the view in subqueries. Views make it easier to write and execute queries by abstracting complex logic and calculations into a single, simplified view. They also provide a layer of security by allowing access control to be applied to the view, ensuring that only authorized users can access certain data. Additionally, views can be used in subqueries, allowing for more efficient and organized database design.

    Rate this question:

  • 30. 

    Šta je obavezno u svakom SELECT upitu: 

    • A.

      GROUP BY

    • B.

      SELECT

    • C.

      WHERE

    • D.

      FROM

    • E.

      ORDER BY

    Correct Answer(s)
    B. SELECT
    D. FROM
    Explanation
    In every SELECT query, the SELECT and FROM clauses are mandatory. The SELECT clause specifies the columns that should be included in the result set, while the FROM clause specifies the table or tables from which the data should be retrieved. Therefore, both SELECT and FROM are necessary components of a valid SELECT query. The other options listed (GROUP BY, WHERE, and ORDER BY) are optional clauses that can be included depending on the specific requirements of the query.

    Rate this question:

  • 31. 

    Naredbom: SELECT * FROM ImeTabele

    • A.

      Selektuju se ne NULL vrednosti iz tabele ImeTabele

    • B.

      Selektuje se primarni ključ tabele ImeTabele

    • C.

      Prikazuju se svi zapisi tabele ImeTabele

    • D.

      Prikazuju se NULL vrednosti tabele ImeTabele

    Correct Answer
    C. 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:

  • 32. 

    Obeležiti (svodne) funkcije koje se mogu koristiti u SQL upitima sa izvedenim rezultatom: 

    • A.

      SUM

    • B.

      AVG

    • C.

      DISTINCT

    • D.

      ALL

    • E.

      MIN

    • F.

      MAX

    • G.

      COUNT

    • H.

      DESCENDING

    Correct Answer(s)
    A. SUM
    B. AVG
    E. MIN
    F. MAX
    G. COUNT
    Explanation
    The correct answer includes the functions SUM, AVG, MIN, MAX, and COUNT. These functions are commonly used in SQL queries to perform calculations and retrieve specific information from a database. The SUM function calculates the total sum of a column, the AVG function calculates the average value, the MIN function retrieves the minimum value, the MAX function retrieves the maximum value, and the COUNT function counts the number of rows that meet certain criteria. These functions are essential in data analysis and reporting tasks in SQL.

    Rate this question:

  • 33. 

    Šta je ekvivalentno sledećem izrazu:Prom1 BETWEEN Prom2 AND Prom3: 

    • A.

      Prom1 >= Prom2 AND Prom1

    • B.

      Prom1 >= Prom3 AND Prom1

    • C.

      Prom1 ≠ Prom2 AND Prom3;

    • D.

      Prom1 IN (Prom2, Prom3);

    Correct Answer
    A. Prom1 >= Prom2 AND Prom1
    Explanation
    The correct answer is "Prom1 >= Prom2 AND Prom1". This is because the expression "Prom1 BETWEEN Prom2 AND Prom3" checks if the value of Prom1 is between the values of Prom2 and Prom3, inclusive. In the given answer, "Prom1 >= Prom2" checks if Prom1 is greater than or equal to Prom2, and "Prom1" ensures that Prom1 is not greater than Prom2. Therefore, this expression is equivalent to "Prom1 BETWEEN Prom2 AND Prom3".

    Rate this question:

  • 34. 

    Šta je nekorelisani podupit: 

    • A.

      Nezavisan upit i izvršava se za svaki red tabele koju obrađuje spoljni upit;

    • B.

      Upit koji pri svakom pozivu daje drugačiji rezultat;

    • C.

      Njegovo izvršavanje ne zavisi od izvršavanja spoljnog upita; Izvršava se na početku;

    • D.

      To je vrsta pogleda i daje samo svodni rezultat za dalje korišćenje;

    Correct Answer
    C. Njegovo izvršavanje ne zavisi od izvršavanja spoljnog upita; Izvršava se na početku;
    Explanation
    The correct answer is "Njegovo izvršavanje ne zavisi od izvršavanja spoljnog upita; Izvršava se na početku." This means that the execution of the subquery is independent of the execution of the outer query and it is executed at the beginning.

    Rate this question:

  • 35. 

    Šta je korelisani podupit: 

    • A.

      Njegovo izvršavanje ne zavisi od izvršavanja spoljnog upita; Izvršava se na početku;

    • B.

      Njegovo izvršavanje ne zavisi od izvršavanja spoljnog upita. Izvršava se za svaki red tabele koju obrađuje spoljni upit;

    • C.

      Upit koji pri pozivu daje rezultat korelisan sa upitom iz prethodne SQL naredbe;

    Correct Answer
    B. Njegovo izvršavanje ne zavisi od izvršavanja spoljnog upita. Izvršava se za svaki red tabele koju obrađuje spoljni upit;
    Explanation
    The correct answer is that a correlated subquery is executed for each row of the table being processed by the outer query. This means that the execution of the subquery is dependent on the execution of the outer query and is performed for each row individually.

    Rate this question:

  • 36. 

    SQL naredba INSERT je: 

    • A.

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

    • B.

      Naredba za unošenje novih kolona u tabelu

    • C.

      Naredba za unošenje novih redova u tabelu

    • D.

      Naredba za postavljanje upita nad redovima tabele

    Correct Answer
    C. 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:

  • 37. 

    SQL naredba UPDATE je: 

    • A.

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

    • B.

      Naredba za unošenje novih kolona u tabelu

    • C.

      Naredba za postavljanje tačnog vremena i datuma

    • D.

      Naredba za izmenu redova u tabelu

    Correct Answer
    D. 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:

  • 38. 

    SQL naredba DELETE je: 

    • A.

      Naredba za uklanjanje redova iz tabele

    • B.

      Naredba za uklanjanje tabela iz baze podataka

    • C.

      Naredba za uklanjanje kolona u tabelu

    • D.

      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:

  • 39. 

    Naredbe ažuriranja se odnose: 

    • A.

      Na celu bazu podataka, ako ispunjava tražene uslove

    • B.

      Na dve tabele koje su povezane istim atributima

    • C.

      Uvek na jednu tabelu

    • D.

      Na više tabela odjednom

    Correct Answer
    C. 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:

  • 40. 

    Osnovne kontrole pristupa podacima su: 

    • A.

      Ko može da pristupa BP

    • B.

      Čemu može da pristupa u BP

    • C.

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

    • D.

      Vreme u kom može da se pristupa podacima

    • E.

      Broj pristupa podacima

    Correct Answer(s)
    A. Ko može da pristupa BP
    B. Čemu može da pristupa u BP
    C. Š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:

  • 41. 

    Kontrola pristupa se obezbeđuje sa funkcijama: 

    • A.

      Kreiranje i uklanjanje korisnika (nalozi za rad)

    • B.

      Dodela i uklanjanje opštih prava za rad sa BP

    • C.

      Dodela i uklanjanje posebnih prava

    • D.

      Kreiranja tabela BP

    • E.

      Brisanja željenih zapisa iz tabela BP

    Correct Answer(s)
    A. Kreiranje i uklanjanje korisnika (nalozi za rad)
    B. Dodela i uklanjanje opštih prava za rad sa BP
    C. Dodela i uklanjanje posebnih prava
    Explanation
    The correct answer is the list of functions that ensure access control. These functions include creating and removing user accounts, assigning and removing general privileges for working with a database, assigning and removing specific privileges, creating database tables, and deleting desired records from the tables. These functions collectively help in controlling access to the system and its resources.

    Rate this question:

  • 42. 

    Username je: 

    • A.

      Javni podatak za najavu korisnika sistemu za upravljanje BP

    • B.

      Tajni podatak za najavu korisnika sistemu za upravljanje BP

    • C.

      Ime osnovne tabele na koju se povezuju sve druge tabele BP

    • D.

      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:

  • 43. 

    Password je: 

    • A.

      Tajni naziv, kojom korisnik pored username-a kompletira postupak najave

    • B.

      Javni podatak za najavu korisnika sistemu za upravljanje BP

    • C.

      Indeks osnovne tabele u BP

    • D.

      Javni podatak koji se razmenjuje sa drugim korisnicima

    Correct Answer
    A. Tajni naziv, kojom korisnik pored username-a kompletira postupak najave
    Explanation
    The correct answer is "tajni naziv, kojom korisnik pored username-a kompletira postupak najave". This is because a password is a secret or confidential term that a user combines with their username to complete the login process. It is used to authenticate the user and ensure that only authorized individuals can access the system or data.

    Rate this question:

  • 44. 

    CONNECT Opšte pravo znači sledeće: 

    • A.

      Sva dodeljena posebna prava nad tabelama, plus kreiranja pogleda nad tim tabelama

    • B.

      Sva dodeljena posebna prava nad tabelama, plus kreiranja osnovnih tabela

    • C.

      Neograničena prava nad BP, koja ima korisnik koji je administrator BP

    • D.

      Sva dodeljena posebna prava nad tabelama, i mogu se dodeljivati drugim korisnicima

    Correct Answer
    A. Sva dodeljena posebna prava nad tabelama, plus kreiranja pogleda nad tim tabelama
    Explanation
    The correct answer is "sva dodeljena posebna prava nad tabelama, plus kreiranja pogleda nad tim tabelama". This means that CONNECT Privilege includes all the assigned special privileges on tables, as well as the ability to create views on those tables.

    Rate this question:

  • 45. 

    RESOURCE Opšte pravo znači sledeće: 

    • A.

      Sva dodeljena posebna prava nad tabelama, plus kreiranja pogleda nad tim tabelama, plus prava kreiranja osnovnih tabela

    • B.

      Sva dodeljena posebna prava nad tabelama, plus prava brisanja tabela

    • C.

      Neograničena prava nad BP, koja ima korisnik koji je administrator BP

    • D.

      Sva dodeljena posebna prava nad tabelama, i mogu se dodeljivati drugim korisnicima

    Correct Answer
    A. Sva dodeljena posebna prava nad tabelama, plus kreiranja pogleda nad tim tabelama, plus prava kreiranja osnovnih tabela
    Explanation
    The correct answer means that "opšte pravo" includes all the specific rights assigned to tables, as well as the ability to create views on those tables and the rights to create basic tables.

    Rate this question:

  • 46. 

    DBA Opšte pravo znači sledeće: 

    • A.

      Sva dodeljena posebna prava nad tabelama, plus kreiranja pogleda nad tim tabelama

    • B.

      Sva dodeljena posebna prava nad tabelama, plus kreiranja osnovnih tabela

    • C.

      Neograničena prava nad BP, koja ima korisnik koji je administrator BP

    • D.

      Sva dodeljena posebna prava nad tabelama, i mogu se dodeljivati drugim korisnicima

    Correct Answer
    C. Neograničena prava nad BP, koja ima korisnik koji je administrator BP
    Explanation
    The correct answer is "neograničena prava nad BP, koja ima korisnik koji je administrator BP." This means that DBA Opšte pravo refers to unlimited rights over the database, which are held by a user who is the administrator of the database. This option states that the user has unrestricted privileges and control over the entire database.

    Rate this question:

  • 47. 

    Ako se korisniku ukloni CONNECT opšte pravo: 

    • A.

      Ostaju mu ostala posebna prava koja su mu dodeljena

    • B.

      Ostaje mu pravo pregledanja tabela

    • C.

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

    • D.

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

    Correct Answer
    C. 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:

  • 48. 

    Ako se korisnicima daju Posebna prava sa WITH GRANT OPTION klauzulom, tada: 

    • A.

      Navedeni korisnici gube sva prethodno dodeljena prava

    • B.

      Navedeni korisnici imaju pravo brisanja tabela u BP

    • C.

      Navedeni korisnici mogu dalje dodeljivati sva navedena prava

    • D.

      Navedeni korisnici postaju administratori sistema

    Correct Answer
    C. Navedeni korisnici mogu dalje dodeljivati sva navedena prava
    Explanation
    When users are given Special privileges with the WITH GRANT OPTION clause, it means that they can further assign all the mentioned privileges to other users. This means that they have the authority to grant the same privileges to other users that they themselves have been granted.

    Rate this question:

  • 49. 

    Šeme relacija imaju dobru strukturu kada: 

    • A.

      Imaju malo atributa

    • B.

      Kada im je primarni ključ jedinstven atribut i pojavljuje se na prvom mestu u šemi

    • C.

      Se kroz upite i samu strukturu RBP ne uočavaju nepogodnosti

    • D.

      Su svi odnosi u relaciji 1:N

    Correct Answer
    C. Se kroz upite i samu strukturu RBP ne uočavaju nepogodnosti
    Explanation
    A relation has a good structure when there are no drawbacks or issues that can be observed through queries and the relational database structure itself. In other words, it means that the relation is well-designed and efficient, and there are no apparent problems or limitations when working with it. This suggests that the relation is optimized and can be easily queried and manipulated without any noticeable drawbacks.

    Rate this question:

  • 50. 

    Karakteristično za šeme relacija loše strukture je: 

    • A.

      Za atribut u sastavu primarnog ključa može se uneti NULL vrednost

    • B.

      Između atributa jedne relacije mogu postojati zavisnosti kojima se ograničavaju vrednosti atributa u n-torkama

    • C.

      Mogu se pojaviti dva ista reda u tabeli

    • D.

      Moguće je narušiti referencijalni integritet tako što se može obrisati ili izmeniti vrednost primarnog ključa u ciljnoj relaciji

    Correct Answer
    B. Između atributa jedne relacije mogu postojati zavisnosti kojima se ograničavaju vrednosti atributa u n-torkama
    Explanation
    In a poorly structured relationship, there can be dependencies between attributes of a relation that restrict the values of attributes in tuples. This means that the values of certain attributes are dependent on the values of other attributes within the same relation.

    Rate this question:

Quiz Review Timeline +

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

  • Current Version
  • Mar 20, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • Feb 13, 2015
    Quiz Created by
    Acabarbul
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.