Baze Podataka Drugi Kol

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 Jozef.1994
J
Jozef.1994
Community Contributor
Quizzes Created: 1 | Total Attempts: 529
Questions: 60 | Attempts: 529

SettingsSettingsSettings
Baze Podataka Drugi Kol - Quiz

Questions and Answers
  • 1. 

    Integritet entiteta je:

    • A.

      Trojka (tip podataka,duzinapodataka, uslov)

    • B.

      Nijedan deo niti ceo primarni kljuc ne mogu biti NULL

    • C.

      Spoljni kljuc je podskup skupa primarnog kljuca

    • D.

      Specialno ogranicenje domena, tako da obelezje moze imati i nedefinisanu vrednost

    Correct Answer
    B. Nijedan deo niti ceo primarni kljuc ne mogu biti NULL
    Explanation
    Integritet entiteta refers to the integrity constraints that ensure the correctness and consistency of data within a database. The given answer states that neither a part nor the entire primary key can have a NULL value. This is a valid explanation as NULL values are not allowed in primary keys, as they are used to uniquely identify records in a table, and having NULL values would defeat this purpose.

    Rate this question:

  • 2. 

    U kojoj je normalnoj formi relacija ako su sve vrednosti njenih atributa atomske

    • A.

      Boyce Codd-ovoj normalnoj formi

    • B.

      Prvoj normalnoj formi

    • C.

      Trecoj normalnoj formi

    • D.

      Ni u jednoj

    Correct Answer
    B. Prvoj normalnoj formi
    Explanation
    In the first normal form (1NF), all the values of the attributes in a relation are atomic, meaning they cannot be further divided into smaller components. This means that each attribute in a relation should contain only a single value and cannot have multiple values or be a composite attribute. Therefore, if all the values of the attributes in a relation are atomic, it is in the first normal form.

    Rate this question:

  • 3. 

    Na slici je prikazana koj kardinalnost 

    • A.

      1:M

    • B.

      M:M

    • C.

      1:1

    • D.

      M:1

    Correct Answer
    B. M:M
    Explanation
    The correct answer is M:M, which represents a many-to-many cardinality relationship. This means that multiple entities from one table can be associated with multiple entities from another table. In this case, both tables have a many-to-many relationship with each other, indicating that multiple entities from the first table can be linked to multiple entities from the second table, and vice versa.

    Rate this question:

  • 4. 

    Entiteti su:

    • A.

      Skup Baze

    • B.

      Elementarni Objekti

    • C.

      Tabele

    • D.

      Skup tabela

    Correct Answer
    B. Elementarni Objekti
    Explanation
    The correct answer is "Elementarni Objekti" because in the given list of entities, "Elementarni Objekti" is the only option that refers to individual objects or elements. The other options such as "Skup Baze" (database set), "Tabele" (tables), and "Skup tabela" (table set) are more general terms that do not specifically refer to individual objects. Therefore, "Elementarni Objekti" is the most appropriate choice as it represents the specific entities in this context.

    Rate this question:

  • 5. 

    Ako postoji korespondencija jedan prema vise od atributa A1 tebele A ka atributu B1 tabele B, onda:

    • A.

      Svakoj vrednosti atributa A odgovara vise od jedne vrednosti atributa B

    • B.

      Svakoj vrednosti atributa A odgovaraju nula, jedan ili vise vrednosti atributa B

    • C.

      Svakoj vrednosti atributa A odgovara jedna vrednost atributa B

    • D.

      Sakoj vrednosti atributa A odgovaraju jedna ili vise vrednosti atributa B

    Correct Answer
    B. Svakoj vrednosti atributa A odgovaraju nula, jedan ili vise vrednosti atributa B
    Explanation
    If there is a one-to-many correspondence between attribute A1 of table A and attribute B1 of table B, it means that each value of attribute A can correspond to zero, one, or multiple values of attribute B.

    Rate this question:

  • 6. 

    Slabi objekti koji samo egzistencijalno zavise od nekog cvrstog objekta

    • A.

      Mogu, ali ne moraju imati slozeni primarni kljuc, ciji je deo kljuc cvrstog objekta

    • B.

      Nemaju primarni kljuc

    • C.

      Imaju slozeni primarni kljuc

    • D.

      Imaju primarni kljuc u ciji sastav ne ulazi kljuc cvrstog objekta

    Correct Answer
    A. Mogu, ali ne moraju imati slozeni primarni kljuc, ciji je deo kljuc cvrstog objekta
    Explanation
    The correct answer states that weak objects that only existentially depend on a strong object can, but do not have to, have a composite primary key, where part of the key is the key of the strong object. This means that weak objects can have a primary key that includes the key of the strong object, but it is not mandatory for them to have it.

    Rate this question:

  • 7. 

    Odnos broja objekata koji se povezuju je

    • A.

      Kardinalnost

    • B.

      Stepen veze

    • C.

      Red veze

    • D.

      Broj veze

    Correct Answer
    B. Stepen veze
    Explanation
    The correct answer is "stepen veze" because it refers to the degree of connection or relationship between objects. It indicates the number of links or connections that an object has with other objects in a network or system.

    Rate this question:

  • 8. 

    Opsti oblik select upita glasi

    • A.

      Select,From,Having,Order by,Group by,Where

    • B.

      Select,From,Having,Group by,Where,Order by

    • C.

      Select,From,Where,Order by,Group by,Having

    • D.

      Select,From,Where,Group by,Having,Order by

    Correct Answer
    D. Select,From,Where,Group by,Having,Order by
    Explanation
    The correct answer is "Select,From,Where,Group by,Having,Order by". This is the correct order of the keywords in a general form of a select query. "Select" is used to specify the columns to be retrieved, "From" is used to specify the table from which the data is retrieved, "Where" is used to specify the conditions for retrieving the data, "Group by" is used to group the data based on certain columns, "Having" is used to specify conditions on the grouped data, and finally "Order by" is used to specify the sorting order of the retrieved data.

    Rate this question:

  • 9. 

    Na slici je prikazana koja kardinalnost

    • A.

      1:1

    • B.

      M:M

    • C.

      1:M

    • D.

      3:3

    Correct Answer
    A. 1:1
    Explanation
    The image represents a 1:1 cardinality, which means that each entity on one side of the relationship is associated with only one entity on the other side, and vice versa. This indicates a one-to-one relationship between the entities involved, where each entity has a unique and exclusive connection with another entity.

    Rate this question:

  • 10. 

    Ako upiti nad tabelom radnik<idbr#,ime,posao>SELECT DISTINCT ime,posao From radnik;iSELECT ALL ime,posao From radnikvracaju jednak broj zapisa, onda vazi sledece

    • A.

      U tabeli RADNIK ne postoje radnici sa istim poslom

    • B.

      U tabeli RADNIK ne postoji vise radnika koji imaju isto ime i isti posao

    • C.

      U tabeli RADNIK ne moze postojati vise radnika koji imaju isto ime

    • D.

      U tabeli RADNIK postoji vise radnika koji imaju isto ime i posao

    Correct Answer
    B. U tabeli RADNIK ne postoji vise radnika koji imaju isto ime i isti posao
    Explanation
    The correct answer implies that in the table RADNIK, there are no multiple workers with the same name and the same job. This means that each worker in the table has a unique combination of name and job.

    Rate this question:

  • 11. 

    Imamo definisane objekte RACUN<brojracuna#, iznos,......> i STAVKA <brojstavke#, brojracuna#, kolicina,cijena,....>. Sta je od dole navedenog tacno u E-R modelu?

    • A.

      RACUN je cvrsti objekat, a Stavka slabi

    • B.

      I RACUN i STAVKA su slabi objekti

    • C.

      RACUN i STAVKA su cvrsti objekti

    • D.

      RACUN je slabi objekat, a STAVKA cvrsti

    Correct Answer
    A. RACUN je cvrsti objekat, a Stavka slabi
    Explanation
    In the given E-R model, the statement "RACUN je cvrsti objekat, a Stavka slabi" means that "RACUN" is a strong entity and "Stavka" is a weak entity. This implies that "RACUN" has its own independent existence and can exist without any associated "Stavka" entity. On the other hand, "Stavka" depends on the existence of a "RACUN" entity and cannot exist without it.

    Rate this question:

  • 12. 

    Data je tabela GRADANIN<matbr, ime, prezime, matbr2>. Atribut matbr predstavlja maticni broj osobe, a matbr2maticni broj bracnog druga osobe koja je opisana u jednom zapisu. Izmedu n-torki tabele GRADANIN postoje:

    • A.

      Unarne veze1:N

    • B.

      Unarne veze 1:1

    • C.

      Binarne veze 1:1

    • D.

      Unarne veze M:N

    Correct Answer
    B. Unarne veze 1:1
    Explanation
    The correct answer is "unarne veze 1:1". This means that there is a one-to-one relationship between the tuples in the table GRADANIN. Each tuple represents a person and has a unique matbr (maticni broj) attribute. The matbr2 attribute represents the maticni broj of the spouse of that person, and it is also unique. Therefore, each person in the table is associated with one and only one spouse, and each spouse is associated with one and only one person.

    Rate this question:

  • 13. 

    Skup svih vrednosti elementarnih obelezja koja se odnose na jedan objekat predstavlja

    • A.

      Intenziju

    • B.

      Zapis

    • C.

      Polje

    • D.

      Atribut

    Correct Answer
    B. Zapis
    Explanation
    The correct answer is "Zapis". In Serbian language, "zapis" means "record" or "entry". Therefore, the skup svih vrednosti elementarnih obelezja, which translates to "set of all values of elementary features", can be understood as a record or entry that represents the values associated with an object.

    Rate this question:

  • 14. 

    Svakom elementarnom obelezju pripisuje se

    • A.

      Tacno jedan elementarni podatak

    • B.

      Najmanje jedan elementarni podatak

    • C.

      Tacno jedan zapis

    • D.

      Tacno jedan atribut

    Correct Answer
    A. Tacno jedan elementarni podatak
    Explanation
    Each elementary characteristic is assigned exactly one elementary data.

    Rate this question:

  • 15. 

    Veze tipa M:N mogu se realizovati bez vezne tabele u:

    • A.

      Hijerarhijskom modelu baze podataka

    • B.

      Relacionom modelu baze podataka

    • C.

      Mreznom modelu baze podataka

    • D.

      Objektnom modelu baze podataka

    Correct Answer
    C. Mreznom modelu baze podataka
    Explanation
    In the network model of a database, relationships between entities are represented by interconnected records, called sets. In this model, M:N relationships can be implemented without the need for a junction table. Instead, each record can directly link to multiple related records. This allows for more flexibility in representing complex relationships between entities. In contrast, the relational model typically requires a junction table to represent M:N relationships.

    Rate this question:

  • 16. 

    Minimalna kardinalnost odreduje

    • A.

      Neodreden broj instanci koji moraju da ucestvuju u vezi

    • B.

      Maksimalan broj instanci entiteta kojimoraju da ucestvuju u vezi

    • C.

      Minimalan broj instanci entiteta koji mogu a ne moraju da ucestvuju u vezi

    • D.

      Minimalan broj instanci entiteta koji morajuda ucestvuju u vezi

    Correct Answer
    C. Minimalan broj instanci entiteta koji mogu a ne moraju da ucestvuju u vezi
    Explanation
    The correct answer is "minimalan broj instanci entiteta koji mogu a ne moraju da ucestvuju u vezi". This means that the minimal cardinality determines the minimum number of instances of an entity that can optionally participate in a relationship. In other words, it indicates the minimum number of instances that may or may not be involved in the relationship.

    Rate this question:

  • 17. 

    Spoljni kljuc je podskup skupa primarnog kljuca je definicija za:

    • A.

      Integritet atributa

    • B.

      Integritet domena

    • C.

      Integritet entiteta

    • D.

      Referencijalni integritet

    Correct Answer
    D. Referencijalni integritet
    Explanation
    Referencijalni integritet je definicija za spoljni ključ koji je podskup skupa primarnog ključa. Ovo znači da kada se koristi spoljni ključ u jednoj tabeli, on mora referisati na postojeći primarni ključ u drugoj tabeli. Ova veza osigurava da se podaci integriteta održavaju u bazi podataka, sprečavajući unos pogrešnih ili nedoslednih podataka.

    Rate this question:

  • 18. 

    Realizacija informacionog sistema pocinje:

    • A.

      Realizacijom komunikacionog modela prema korisnicima

    • B.

      Fizickom realizacijom usvojenog modela baze podataka

    • C.

      Bilo kojim postupkom

    • D.

      Realizacijom aplikacionog dela baze podataka

    Correct Answer
    B. Fizickom realizacijom usvojenog modela baze podataka
    Explanation
    The correct answer is the physical implementation of the adopted database model. This means that after designing the database model, the next step is to physically create the database structure and populate it with data. This involves creating tables, defining relationships, and setting up constraints. The physical implementation ensures that the database model is translated into an actual functioning database that can be accessed and manipulated.

    Rate this question:

  • 19. 

    Za distribuiranje baze podataka vezana je prvenstveno:

    • A.

      Vertikalna normalizacija

    • B.

      Dekompozicija

    • C.

      Prva normalna forma

    • D.

      Horizontalna normalizacija

    Correct Answer
    D. Horizontalna normalizacija
    Explanation
    Horizontalna normalizacija se odnosi na proces razdvajanja podataka u bazi na različite tablice kako bi se smanjila redundancija i povećala efikasnost. Ova vrsta normalizacije se primarno koristi za distribuiranje baze podataka na različite čvorove ili servere kako bi se poboljšala skalabilnost i performanse sistema. Dakle, horizontalna normalizacija je najrelevantnija za distribuiranje baze podataka.

    Rate this question:

  • 20. 

    Posmatraju se objekti RACUN i STAVKA nekog racuna. Objekat STAVKA zavisi od objekta RACUN

    • A.

      Samo egzistencijalno

    • B.

      Samo identifikacijski

    • C.

      Nazavisna je od objekta RACUN

    • D.

      Egzistencijalno i identifikacijski

    Correct Answer
    D. Egzistencijalno i identifikacijski
    Explanation
    The given answer is "egzistencijalno i identifikacijski" which means that the object STAVKA depends on the existence and identification of the object RACUN. This implies that the existence of the STAVKA object is tied to the existence of the RACUN object, and the identification of the STAVKA object is determined by the identification of the RACUN object. In other words, without a RACUN object, there can be no STAVKA object, and the identification of the STAVKA object is directly linked to the identification of the RACUN object.

    Rate this question:

  • 21. 

    Koja klauzula je uvek poslednja u SELECT bloku?

    • A.

      HAVING

    • B.

      GROUP BY

    • C.

      WHILE

    • D.

      ORDER BY

    Correct Answer
    D. ORDER BY
    Explanation
    The ORDER BY clause is always the last clause in a SELECT statement. It is used to sort the result set based on one or more columns in ascending or descending order. This allows the user to control the order in which the rows are displayed in the final result set.

    Rate this question:

  • 22. 

    U naredbe jezika za definisanje podataka (Data Control Language ) spadaju

    • A.

      Create table, drop view, commit work

    • B.

      Create view, create index, create table

    • C.

      Create table, create view, begin transaction

    • D.

      Grant, revoke, rollback work

    Correct Answer
    D. Grant, revoke, rollback work
    Explanation
    The correct answer is "grant, revoke, rollback work". These commands are part of the Data Control Language (DCL) in a programming language. The "grant" command is used to give permissions to users, the "revoke" command is used to remove permissions, and the "rollback work" command is used to undo the changes made within a transaction. These commands are used for managing and controlling access to data in a database system.

    Rate this question:

  • 23. 

    Imenovana virtuelna tabela cija se definicija cuva kao objekat u bazi se naziva

    • A.

      Pogled

    • B.

      Bazna

    • C.

      Viruelna

    • D.

      Fizicka

    Correct Answer
    A. Pogled
    Explanation
    A named virtual table whose definition is stored as an object in the database is called a "pogled" (view).

    Rate this question:

  • 24. 

    Domen atributa je

    • A.

      Iskaz definisan jednom prostom recenicom

    • B.

      Novi podatak koji poseduje relevantnu novinu, neko novosaznanje, a rezultat je obrada poznatih podataka

    • C.

      Nesto sto postoji i sto se moze jednoznacno identifikovati

    • D.

      Skup dozvoljenih vrednosti koje neki atribut moze uzeti

    Correct Answer
    D. Skup dozvoljenih vrednosti koje neki atribut moze uzeti
    Explanation
    The correct answer is "Skup dozvoljenih vrednosti koje neki atribut moze uzeti" which translates to "The set of allowed values that an attribute can take." This explanation aligns with the concept of attribute domain in database management systems, where an attribute is defined by a set of possible values it can have.

    Rate this question:

  • 25. 

    Kojom klauzolom je moguce izdvojiti samo neke atribute

    • A.

      Select

    • B.

      Where

    • C.

      From

    • D.

      Group by

    Correct Answer
    A. Select
    Explanation
    The correct answer is "Select". In SQL, the SELECT statement is used to retrieve data from a database. It allows you to specify which columns or attributes you want to retrieve in the result set. The SELECT statement can be used to extract specific attributes or all attributes from a table, depending on the requirements of the query.

    Rate this question:

  • 26. 

    Dodavanje novih n-torki u postojece relacije se izvodi naredbom

    • A.

      Update

    • B.

      Create

    • C.

      Group by

    • D.

      Insert

    Correct Answer
    A. Update
    Explanation
    The correct answer is "Update". The "Update" command is used to modify existing tuples or rows in a relation. It allows for the addition of new tuples to existing relations by changing the values of certain attributes or columns. This command is commonly used in database management systems to make changes to the data stored in tables.

    Rate this question:

  • 27. 

    Koja naredba pripada grupi naredbi za upravljacke funkcije

    • A.

      Grant

    • B.

      Alter Table

    • C.

      Delete

    • D.

      Select

    Correct Answer
    A. Grant
    Explanation
    The correct answer is "Grant." Grant is a command used in database management systems to give specific privileges or permissions to users or roles. It is a control function that allows administrators to define who can access and manipulate data within a database. The other options listed (Alter Table, Delete, and Select) are not control functions but rather data manipulation or data definition commands.

    Rate this question:

  • 28. 

    Redudansa je

    • A.

      Dupliciranje podataka

    • B.

      Nekompatibilnost formata fajlova

    • C.

      Razdvojenost i izolovanost podataka

    • D.

      Zavisnost programa od organizacije podataka

    Correct Answer
    A. Dupliciranje podataka
    Explanation
    The given correct answer, "Dupliciranje podataka" in English means "Data duplication." This refers to the practice of storing multiple copies of the same data in a system. Data duplication can occur due to various reasons such as poor data management, lack of data integration, or redundancy in data storage. Duplicating data can lead to inconsistencies, increased storage requirements, and difficulties in data updates and maintenance.

    Rate this question:

  • 29. 

    Ako atribut A1 tabele A jednoznacno identifikuje atribut B1 tabele B, onda za tebele A i B vazi sledece:

    • A.

      Nalaze se u vezi 1:1

    • B.

      Nalaze se u drugoj normalnoj formi

    • C.

      Nalaze se u vezi 1:N

    • D.

      Nalaze se u drugoj normalnoj formi

    Correct Answer
    A. Nalaze se u vezi 1:1
    Explanation
    If attribute A1 of table A uniquely identifies attribute B1 of table B, then they are in a 1:1 relationship.

    Rate this question:

  • 30. 

    Relacija se nalazi u trecoj normalnoj formi ako se nalazi u 2NF i

    • A.

      Ako nekljucni atributi u tebeli nisu tranzitivno zavisni od kljucnih atributa

    • B.

      Ako su svi nekljucni atributi u tabeli i funkcionalno i tranzitivno zavisni od kljucnih atributa

    • C.

      Ako svi nekljucni atributi nisu medusobno funkcionalno zavisni

    • D.

      Ako su svi nekljucni atributi u tabeli medusobno tranzitno zavisni

    Correct Answer
    A. Ako nekljucni atributi u tebeli nisu tranzitivno zavisni od kljucnih atributa
    Explanation
    The correct answer is "ako nekljucni atributi u tebeli nisu tranzitivno zavisni od kljucnih atributa." This is because the question is asking for the condition that must be met for a relation to be in the third normal form. According to the definition of the third normal form, the non-key attributes in the table should not be transitively dependent on the key attributes. In other words, there should not be any indirect dependencies between non-key attributes through other non-key attributes.

    Rate this question:

  • 31. 

    Imamo sledece modele:1.relacioni model2.hijerarhijski i mrezni model3.objektno orijentisani model4.model zasnovan na programskim jezicimaNavesti redosled kojim su se pojavili od prve generacije do cetvrte:

    • A.

      4,2,1,3

    • B.

      1,3,2,4

    • C.

      4,2,3,1

    • D.

      1,2,3,4

    Correct Answer
    A. 4,2,1,3
    Explanation
    The correct answer is 4,2,1,3. This order represents the chronological appearance of the models from the first generation to the fourth. The relational model (1) was the first to emerge, followed by the hierarchical and network model (2), then the object-oriented model (3), and finally the model based on programming languages (4).

    Rate this question:

  • 32. 

    U operatore pogodne za azuriranje spadaju

    • A.

      Unije,presek i razlika

    • B.

      Selekcija, projekcija i dekartov proizvod

    • C.

      Unija, presek i spajanje

    • D.

      Selekcija, projekcija i spajanje

    Correct Answer
    A. Unije,presek i razlika
    Explanation
    The correct answer is "unije, presek i razlika" which translates to "union, intersection, and difference" in English. These are all operators used in set theory and database operations. The union operator combines two sets and returns a set containing all the elements from both sets. The intersection operator returns a set containing only the elements that are common to both sets. The difference operator returns a set containing only the elements that are in the first set but not in the second set. Therefore, all three operators mentioned in the answer are suitable for updating sets.

    Rate this question:

  • 33. 

    Pravila integriteta se definisu u okviru

    • A.

      Baze podataka

    • B.

      Aplikacije

    • C.

      Operativnog sistema

    • D.

      Ne definisu se

    Correct Answer
    A. Baze podataka
    Explanation
    The correct answer is "baze podataka" because integrity rules are defined within a database. These rules ensure that the data in the database remains accurate, consistent, and valid. By defining integrity rules, the database can enforce constraints on data entry and manipulation, preventing any unauthorized or incorrect changes to the data. Therefore, the integrity rules are an essential part of the database management system.

    Rate this question:

  • 34. 

    Vrste entiteta su

    • A.

      Primarni, sekundarni, vezni(slabi)

    • B.

      Redovi u tabeli

    • C.

      Realni entiteti, apstraktni entiteti, tebele, pogledi

    • D.

      Realni objekat, apstraktni pojam, dogadaj, asocijacija

    Correct Answer
    D. Realni objekat, apstraktni pojam, dogadaj, asocijacija
    Explanation
    The correct answer includes a list of different types of entities: real objects, abstract concepts, events, and associations. These are all examples of different types of entities that can exist in a system or domain. Real objects refer to tangible physical objects, while abstract concepts are intangible ideas or concepts. Events represent specific occurrences or happenings, and associations refer to relationships or connections between entities.

    Rate this question:

  • 35. 

    Digitalna slika realnog dela sveta, koja je od značaja za informacioni sistem je

    • A.

      Podatak

    • B.

      Model-objekat

    • C.

      Atribut

    • D.

      Zapis

    Correct Answer
    B. Model-objekat
    Explanation
    A digital image of a real-world object that is significant for an information system is referred to as a model-object. This term implies that the image represents a specific object or entity in the real world and is used within an information system to provide a representation or simulation of that object. This can be useful for various purposes such as visualization, analysis, or manipulation of the object within the information system.

    Rate this question:

  • 36. 

    Za razliku od hijerarhijskog modela informacionog sistema, mrežni model dozvoljava

    • A.

      Formalno-matematičku interpretaciju tabela

    • B.

      Polimorfizam

    • C.

      Veze tipa 1:N

    • D.

      Veze tipa M:N

    Correct Answer
    D. Veze tipa M:N
    Explanation
    The correct answer is "veze tipa M:N". The explanation for this answer is that unlike the hierarchical model, the network model allows for many-to-many relationships (M:N). In the network model, records are connected through sets of relationships, and each record can have multiple connections to other records. This allows for more flexibility in representing complex relationships between entities in an information system.

    Rate this question:

  • 37. 

    Kardinalnost relacije je

    • A.

      Broj atributa koji čine složen primarni ključ

    • B.

      Skup dozvoljenih vrednosti primarnog ključa

    • C.

      Broj dozvoljenih vrednosti primarnog ključa

    • D.

      broj n-torki jedne tabele koji su u relaciji sa jednom n-torkom druge tabele

    Correct Answer
    D. broj n-torki jedne tabele koji su u relaciji sa jednom n-torkom druge tabele
    Explanation
    The correct answer is "broj n-torki jedne tabele koji su u relaciji sa jednom n-torkom druge tabele." This answer refers to the cardinality of a relationship, which is the number of tuples from one table that are related to one tuple from another table.

    Rate this question:

  • 38. 

    U SQL upitu

    • A.

      Klauzula SELECT odgovara operatoru selekcije, klauzula HAVING operatoru projekcije, a klauzula GROUP BY operatoru spajanja

    • B.

      Klauzula SELECT odgovara operatoru projekcije, klauzula WHERE operatoru selekcije, a klauzula GROUP BY operatoru spajanja

    • C.

      Klauzula SELECT odgovara operatoru projekcije, klauzula WHERE operatoru selekcije, klauzula FROM operatoru spajanja

    • D.

      Klauzula SELECT odgovara operatoru selekcije, klauzula WHERE operatoru projekcije, a klauzula FROM operatoru spajanja

    Correct Answer
    C. Klauzula SELECT odgovara operatoru projekcije, klauzula WHERE operatoru selekcije, klauzula FROM operatoru spajanja
    Explanation
    The given answer states that the SELECT clause corresponds to the projection operator, the WHERE clause corresponds to the selection operator, and the FROM clause corresponds to the join operator. This means that the SELECT clause is used to specify the columns to be included in the result set, the WHERE clause is used to filter the rows based on certain conditions, and the FROM clause is used to specify the tables to be joined.

    Rate this question:

  • 39. 

    Data je tabela tab1 sa atributom ime. Koji upit vraća spisak svih imena koja sadržemala slova "a" i "b" ?

    • A.

      SELECT ime FROM tab1 WHERE ime LIKE "%a%b%" OR ime LIKE "%b%a%";

    • B.

      SELECT ime FROM tab WHERE ime LIKE ""a?b?" OR ime LIKE "?b?a?";

    • C.

      SELECT ime FROM tab WHERE ime LIKE "%a%b%";

    • D.

      SELECT ime FROM tab WHERE ime LIKE '%b%a%";

    Correct Answer
    A. SELECT ime FROM tab1 WHERE ime LIKE "%a%b%" OR ime LIKE "%b%a%";
    Explanation
    The correct answer is the first option: SELECT ime FROM tab1 WHERE ime LIKE "%a%b%" OR ime LIKE "%b%a%". This query uses the LIKE operator with wildcard characters (%) to search for all names that contain both the letters "a" and "b". The OR operator is used to include names that have "a" followed by "b" or "b" followed by "a".

    Rate this question:

  • 40. 

    Data je tabela radnik <idbr, posao, ime, prezime, brod>. Koji je upit od siedećih ispravan ?

    • A.

      SELECT brod, posao, count(*) FROM radnik GROUP BY brod, posao HAVING count(*)>1;

    • B.

      SELECT brod, count(*) FROM radnik GROUP BY posao HAVING count(*)>1;

    • C.

      SELECT posao, count(*) FROM radnik GROUP BY brod HAVING count(*)>1;

    • D.

      SELECT brod, count(*) FROM radnik GROUP BY brod, posao HAVING count(*)>1;

    Correct Answer
    A. SELECT brod, posao, count(*) FROM radnik GROUP BY brod, posao HAVING count(*)>1;
    Explanation
    The correct answer is the first option: "SELECT brod, posao, count(*) FROM radnik GROUP BY brod, posao HAVING count(*)>1;". This query selects the columns "brod" and "posao" from the table "radnik", and then groups the rows by the values in the "brod" and "posao" columns. It then counts the number of rows in each group using the count(*) function. Finally, it filters the groups to only include those with a count greater than 1 using the HAVING clause. This query will return the "brod" and "posao" values that appear more than once in the table.

    Rate this question:

  • 41. 

    Pogled je

    • A.

      Neimenovana virtuelna tabela

    • B.

      Virtuelna tabela sa imenom

    • C.

      Neimenovana fizička tabela

    • D.

      Fizička tabela sa imenom

    Correct Answer
    B. Virtuelna tabela sa imenom
    Explanation
    The correct answer is "virtuelna tabela sa imenom." This means that the "Pogled" (view) is a virtual table that has a name. In a database, a view is a virtual table that is based on the result of a query. It allows users to retrieve and manipulate data from multiple tables as if it were a single table. The fact that the view has a name distinguishes it from an unnamed virtual table.

    Rate this question:

  • 42. 

    Date su tabele NASTAVNIK i PREDMET. Pod uslovom da jedan nastavnik može dapredaje više predmeta, između zapisa ovih tabela ostvarene su

    • A.

      Unarne veze tipa 1:N

    • B.

      Unarne veze tipa 1:1

    • C.

      Binarne veze tipa 1:1

    • D.

      Binarne veze tipa 1:N

    Correct Answer
    D. Binarne veze tipa 1:N
    Explanation
    The correct answer is "binarne veze tipa 1:N" because it states that there is a binary relationship between the tables NASTAVNIK and PREDMET, where one NASTAVNIK can teach multiple PREDMETs, but each PREDMET is taught by only one NASTAVNIK. This means that the relationship between the two tables is one-to-many, where one NASTAVNIK can be associated with multiple PREDMETs, but each PREDMET can only be associated with one NASTAVNIK.

    Rate this question:

  • 43. 

    Prilikom prevođenja E-R modela na relaconi oblik

    • A.

      Svaki objekat i svaka veza postaju relacije

    • B.

      Svi čvrsti objekti postaju relacije a slabi objekti i veze ne

    • C.

      Svi objekti postaju relacije a svaka veza može ali ne mora da postane relacija

    • D.

      Svi čvrsti objekti postaju relacije a slabi objekti i veze mogu ali ne moraju ca postanu relacije

    Correct Answer
    C. Svi objekti postaju relacije a svaka veza može ali ne mora da postane relacija
    Explanation
    The correct answer is "svi objekti postaju relacije a svaka veza može ali ne mora da postane relacija" which translates to "all objects become relations and each relationship can but does not have to become a relation". This means that when translating an E-R model to a relational form, all objects are represented as relations, but each relationship may or may not be represented as a relation.

    Rate this question:

  • 44. 

    Prilikom prevođenja E-R modela, za binarne veze važi sledeće

    • A.

      Binarne veze tipa 1:1 i 1:N se iskazuju spoljnim kijučem a veze tipa M:N veznom tabelom

    • B.

      Binarne veze tipa 1:1 se iskazuju spoljnim ključem a veze tipa L:N i M:N veznom tabelom

    • C.

      Sve binarne veze se iskazuju spoljnim ključem

    • D.

      Sve unarne veze se iskazuju veznom

    Correct Answer
    A. Binarne veze tipa 1:1 i 1:N se iskazuju spoljnim kijučem a veze tipa M:N veznom tabelom
    Explanation
    When translating an E-R model, binary relationships of type 1:1 and 1:N are expressed using foreign keys, while relationships of type M:N are expressed using a junction table. This means that for 1:1 and 1:N relationships, the foreign key is used to establish the connection between the entities, while for M:N relationships, a separate table is created to represent the relationship.

    Rate this question:

  • 45. 

    Postupak dekompozicije tabeia s ciljem postizanja dobrih osobina relacionog modela iuklanjanja moguće pojave nekontrolisane redundanse je

    • A.

      Diskretizacija

    • B.

      Dekompozicija

    • C.

      Normalizacija

    • D.

      Projekcija

    Correct Answer
    C. Normalizacija
    Explanation
    The correct answer is "normalizacija." Normalizacija je postupak dekompozicije tabele s ciljem postizanja dobrih osobina relacionog modela i uklanjanja moguće pojave nekontrolisane redundanse. Ovaj postupak se koristi kako bi se osigurala strukturalna integritet baze podataka i smanjila redundancija podataka. Normalizacija pomaže u organizaciji podataka na način koji olakšava upite, smanjuje mogućnost grešaka i održava doslednost podataka.

    Rate this question:

  • 46. 

    Anomalije pri upisu, brisanju i izmeni podataka javljajuse kao posledica

    • A.

      Nekontrolisane redundanse

    • B.

      Horizontalne normalizacije

    • C.

      Vertikalne normalizacije

    • D.

      Prisustva veza reda većeg od 3

    Correct Answer
    A. Nekontrolisane redundanse
    Explanation
    The correct answer is "nekontrolisane redundanse" (uncontrolled redundancies). This means that anomalies in data entry, deletion, and modification occur as a result of having redundant data that is not properly controlled. Redundancies can lead to inconsistencies and errors in the data, making it difficult to maintain data integrity and accuracy.

    Rate this question:

  • 47. 

    Ako svaki atribut koji nije ključni potpuno funkcionalno zavisi od primarnog ključa,relacija se nalazi u

    • A.

      Prvoj normalnoj formi

    • B.

      Drugoj normalnoj formi

    • C.

      Trećoj normalnoj formi

    • D.

      četvrtoj normalnoj formi

    Correct Answer
    B. Drugoj normalnoj formi
    Explanation
    The given statement suggests that every non-key attribute in the relation is functionally dependent on the primary key. This condition satisfies the requirements of the second normal form (2NF). In 2NF, all non-key attributes must be functionally dependent on the entire primary key, rather than just a portion of it. Therefore, the relation is in the second normal form.

    Rate this question:

  • 48. 

    Dovoljni i potrebni uslovi koje atribut mora da ispunjava da bi mogao bitikandidat za primami ključ su

    • A.

      Jedinstvenost i nepromenljivost

    • B.

      nepromenljivost i raspoloživost

    • C.

      Jedinstvenost i raspoloživost

    • D.

      Jedinstvenost i minimalnost

    Correct Answer
    D. Jedinstvenost i minimalnost
    Explanation
    The correct answer is "jedinstvenost i minimalnost." To be a candidate for a primary key, an attribute must have uniqueness, meaning that each value in the attribute must be distinct and different from any other value in the same attribute. Additionally, it must have minimalness, which means that no subset of the attribute can uniquely identify a tuple in the relation. Therefore, the attribute must be both unique and minimal to be a candidate for a primary key.

    Rate this question:

  • 49. 

    Ime relacije, vrednost primarnog ključa i ime atributa relacije jednoznačnoidentifikuju

    • A.

      Zapis

    • B.

      Skup zapisa

    • C.

      Atomarni podatak

    • D.

      Skup atomarnih podataka

    Correct Answer
    C. Atomarni podatak
    Explanation
    The given statement implies that the combination of the relation name, primary key value, and attribute name uniquely identifies an atomic data item. This means that each individual data item within a relation can be uniquely identified using these three pieces of information.

    Rate this question:

  • 50. 

    Pravilo referencijalnog integriteta glasi

    • A.

      Skup vrednosti spoljnog ključa relacije R1 mora biti nadskup skupa vrednosti primarnog ključa relacije R2, pri čemu relacije R1 i R2 ne moraju biti različite

    • B.

      Skup vrednosti spoljnog ključa relacije R1 mora biti podskup skupa vrednosti primarnog ključa relacije R2, pri čemu relacije R1 i R2 ne moraju biti različite

    • C.

      Skup vrednosti spoljnog ključa relacije R1 mora biti nadskup skupa vrednosti primarnog ključa relacije R2, pri čemu relacije R1 i R2 moraju biti različite

    • D.

      Skup vrednosti spoljnog ključa relacije R1 mora biti podskup skupa vređnosti primarnog ključa relacije R2, pri čemu relacije R1 i R2 moraju biti različite

    Correct Answer
    B. Skup vrednosti spoljnog ključa relacije R1 mora biti podskup skupa vrednosti primarnog ključa relacije R2, pri čemu relacije R1 i R2 ne moraju biti različite
    Explanation
    The correct answer states that the set of values of the foreign key in relation R1 must be a subset of the set of values of the primary key in relation R2, where relations R1 and R2 do not have to be different. This means that the values in the foreign key column of relation R1 must exist in the primary key column of relation R2, but it is not necessary for R1 and R2 to be different relations. In other words, the foreign key in R1 references the primary key in R2, ensuring referential integrity between the two relations.

    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 21, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • Dec 23, 2014
    Quiz Created by
    Jozef.1994
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.