#1tes

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 Annwyn
A
Annwyn
Community Contributor
Quizzes Created: 7 | Total Attempts: 7,178
| Attempts: 1,460
SettingsSettings
Please wait...
  • 1/123 Pitanja

    Kojom anotacijom u JUnit5 obelezavamo pojedinacne jedinicne testove?

    • @Test
    • @Tests
    • Ne obelezavamo jedinicne testove
Please wait...
#1tes - Quiz


Quiz Preview

  • 2. 

    Metoda crne kutije podrazumeva...

    • Da nemamo dostupan kod, nego samo dokumentaciju

    • Da nemamo dostupnu dokumentaciju, nego samo izvorni kod

    Correct Answer
    A. Da nemamo dostupan kod, nego samo dokumentaciju
    Explanation
    The correct answer is that the black box method assumes that we do not have access to the code, but only to the documentation. This means that we can only interact with the software or system based on its inputs and outputs, without any knowledge of its internal workings.

    Rate this question:

  • 3. 

    Za kreiranje jedinicnih testova u Javi (NetBeans), koristi se sledeci framework:

    • Selenium

    • JUnit

    • NUnit

    Correct Answer
    A. JUnit
    Explanation
    JUnit is the correct answer for creating unit tests in Java using NetBeans. JUnit is a widely used framework for writing and running automated tests in Java. It provides a set of annotations and assertions that help in defining and verifying the expected behavior of individual units of code. JUnit is specifically designed for unit testing and is integrated with various IDEs, including NetBeans, making it a popular choice for Java developers. Selenium and NUnit are not specifically used for creating unit tests in Java, making them incorrect options.

    Rate this question:

  • 4. 

    Koja tvrdnja je tacna?

    • Kada pravimo testove, treba da paket u kojem su klase projekta nazovemo isto kao paket u kojem su klase koje testiramo

    • Kada pravimo testove, ne treba da paket u kojem su klase projekta nazovemo isto kao paket u kojem su klase koje testiramo

    Correct Answer
    A. Kada pravimo testove, treba da paket u kojem su klase projekta nazovemo isto kao paket u kojem su klase koje testiramo
    Explanation
    When creating tests, it is recommended to name the package containing the project classes the same as the package containing the classes being tested.

    Rate this question:

  • 5. 

    Koja tvrdnja je tacna?

    • JUnit testovi su primer automatsko testiranja

    • JUnit testovi su primer manuelnog testiranja

    • JUnit testovi nisu ni automatsko, ni manuelno testiranje

    Correct Answer
    A. JUnit testovi su primer automatsko testiranja
    Explanation
    JUnit testovi su primer automatskog testiranja. JUnit je popularan okvir za pisanje i izvršavanje testova u programskom jeziku Java. Testovi napisani u JUnitu se automatski izvršavaju, bez potrebe za ručnim intervencijama. Ovaj okvir omogućava programerima da definišu testove koji proveravaju ispravnost funkcionalnosti njihovog koda. Automatsko testiranje pomaže u otkrivanju grešaka i olakšava proces razvoja softvera, jer se testovi mogu izvršavati brzo i ponavljati neograničen broj puta.

    Rate this question:

  • 6. 

    Kako se zove razvojno okruzenje koje koristimo na vezbama iz ovog predmeta?

    • IntelliJ IDEA

    • NetBeans

    • Notepad++

    • Vi

    Correct Answer
    A. IntelliJ IDEA
    Explanation
    IntelliJ IDEA is the correct answer because it is the development environment used in exercises for this subject.

    Rate this question:

  • 7. 

    Trosak ispravke greske:

    • Raste sto se kasnije greska pronadje

    • Nije vazan

    • Opada sto se kasnije greska pronadje

    • Nikada nije moguce odrediti

    Correct Answer
    A. Raste sto se kasnije greska pronadje
    Explanation
    The correct answer is "Raste sto se kasnije greska pronadje." This means that the cost of error correction increases as the error is found later. This is because the longer it takes to identify and fix an error, the more time and resources are required to rectify it. Therefore, it is more efficient and cost-effective to identify and correct errors as early as possible.

    Rate this question:

  • 8. 

    Svaki poseban test u JUnit skripti mora kao prefiks imati:

    • @Assert

    • @After

    • @Test

    • @Before

    Correct Answer
    A. @Test
    Explanation
    The correct answer is "@Test" because in JUnit, the "@Test" annotation is used to indicate that a particular method is a test method. This annotation allows the JUnit framework to identify and execute the method as a test case. By including this annotation as a prefix, it ensures that the method is recognized and executed as a separate test in the JUnit script.

    Rate this question:

  • 9. 

    Koja je anotacija za metod u test klasi kojom ukazujemo da metod predstavlja jedinicni test?

    • @Test

    • @TestCase

    • @Unit

    • @JUnit

    Correct Answer
    A. @Test
    Explanation
    The correct annotation for a method in a test class that indicates that the method represents a unit test is "@Test". This annotation is commonly used in testing frameworks such as JUnit to identify and execute individual test cases. By using this annotation, the testing framework recognizes the method as a test and includes it in the test suite for execution.

    Rate this question:

  • 10. 

    Koja tvrdnja je tacna?

    • JUnit testovi su primer automatskog testiranja

    • JUnit testovi su primer manuelnog testiranja

    • JUnit testovi nisu ni automatsko, ni manuelno testiranje

    Correct Answer
    A. JUnit testovi su primer automatskog testiranja
    Explanation
    JUnit testovi su primer automatskog testiranja zato što JUnit je framework za pisanje i izvršavanje automatskih testova u programskom jeziku Java. Automatsko testiranje se odnosi na izvršavanje testova bez intervencije korisnika, što je upravo ono što JUnit testovi omogućavaju. Ovi testovi se mogu automatizovano pokretati i ponavljati kako bi se proverila ispravnost koda i otkrile potencijalne greške. Manuelno testiranje, s druge strane, zahteva ručno izvršavanje testova od strane korisnika, što nije slučaj sa JUnit testovima.

    Rate this question:

  • 11. 

    Na osnovu uzrocno posledicnog grafa pravi se:

    • Tabela odlucivanja

    • Model stanja

    Correct Answer
    A. Tabela odlucivanja
    Explanation
    Based on the causal graph, a decision table is created. A causal graph represents the cause-and-effect relationships between different variables or factors. In this case, the graph suggests that a decision table is the appropriate tool to capture and analyze the relationships between various factors and their corresponding decisions. A decision table helps in organizing and evaluating different combinations of conditions and actions, ultimately aiding in decision-making processes.

    Rate this question:

  • 12. 

    Testiranje je:

    • Proces ispravljanja bagova u aplikaciji

    • Proces kreiranja odgovarajuce dokumentacije za sistem

    • Proces izvrsavanja softvera sa test primerima

    Correct Answer
    A. Proces izvrsavanja softvera sa test primerima
    Explanation
    The correct answer is "Proces izvrsavanja softvera sa test primerima" which means "The process of executing software with test cases." This explanation suggests that testing involves running software with specific test cases to check its functionality and identify any bugs or issues. It emphasizes the active process of executing the software and using test cases as a means of verification.

    Rate this question:

  • 13. 

    Koje tvrdnje su tacne?

    • Metoda bele kutije je kada imamo izvorni kod programa za koji treba da napisemo test

    • Metoda crne kutije je kada imamo izvorni kod programa za koji treba da napisemo test

    • Metoda bele kutije je kada imamo samo dokumentaciju koja opisuje ponasanje programa za koji treba da napisemo test

    • Metoda crne kutije je kada imamo samo dokumentaciju koja opisuje ponasanje programa za koji treba da napisemo test

    Correct Answer(s)
    A. Metoda bele kutije je kada imamo izvorni kod programa za koji treba da napisemo test
    A. Metoda crne kutije je kada imamo samo dokumentaciju koja opisuje ponasanje programa za koji treba da napisemo test
    Explanation
    The correct answer states that "Metoda bele kutije je kada imamo izvorni kod programa za koji treba da napišemo test" (White box method is when we have the source code of the program for which we need to write a test) and "Metoda crne kutije je kada imamo samo dokumentaciju koja opisuje ponašanje programa za koji treba da napišemo test" (Black box method is when we only have documentation that describes the behavior of the program for which we need to write a test). These statements accurately describe the concepts of white box and black box testing methods, where white box testing involves having access to the internal structure and code of the program, while black box testing relies solely on external behavior and specifications.

    Rate this question:

  • 14. 

    Tip testiranja koji namerno testira sistem izvan normalnog kapciteta, cesto do tacke pucanja je:

    • Load test

    • User acceptance test

    • Stress test

    Correct Answer
    A. Stress test
    Explanation
    A stress test is a type of testing that intentionally pushes a system beyond its normal capacity, often until it reaches its breaking point. This test is designed to evaluate how well the system can handle extreme conditions and heavy loads. By subjecting the system to excessive stress, any weaknesses or vulnerabilities can be identified and addressed before they cause failures or performance issues in real-world scenarios.

    Rate this question:

  • 15. 

    Na koji nacin mozemo da ukljucimo spoljasnje biblioteke u projekat?

    • Ukljucivanjem JAR arhivirane biblioteke

    • Ukljucivanjem biblioteke sa Maven repozitorijuma

    • Rucnim prekucavanjem kompletnog koda biblioteke

    • Tako sto projekat pravimo u istom kodu gde su definisane klase projekta

    Correct Answer(s)
    A. Ukljucivanjem JAR arhivirane biblioteke
    A. Ukljucivanjem biblioteke sa Maven repozitorijuma
    Explanation
    We can include external libraries in a project by either including a JAR archived library or by including a library from the Maven repository.

    Rate this question:

  • 16. 

    Koje od navedenih imena metoda nije u skladu sa konencijom imenovanja?

    • IsSystemGood_MustReturnFalse_IfTheSystemIsWindows

    • IsSystemGood_ShouldReturnTrue_IfTheSystemIsGnuLinux

    Correct Answer
    A. IsSystemGood_MustReturnFalse_IfTheSystemIsWindows
    Explanation
    The method name "isSystemGood_MustReturnFalse_IfTheSystemIsWindows" is not in accordance with naming conventions because it includes unnecessary details about the expected return value and the specific condition. A better name would be "isSystemWindows" or "isWindowsSystemGood".

    Rate this question:

  • 17. 

    Kako se dizajniraju testovi?

    • Biraju se slucajno

    • Testiraju se sve kombinacije ulaznih podataka

    • Pazljivo se planiraju i dizajniraju

    Correct Answer
    A. Pazljivo se planiraju i dizajniraju
    Explanation
    The correct answer is "Pazljivo se planiraju i dizajniraju" which means "They are carefully planned and designed" in English. This answer suggests that the process of designing tests requires careful planning and consideration. It implies that tests are not chosen randomly or by testing all combinations of input data, but rather they are thoughtfully planned and designed to ensure effective and efficient testing.

    Rate this question:

  • 18. 

    Otkaz (failure) softverskog sistema je:

    • Bug u kodu

    • Nemogucnost sistema da obavi zahtevanu funkciju

    • Pad sistema usled nestanka struje

    Correct Answer
    A. Nemogucnost sistema da obavi zahtevanu funkciju
    Explanation
    The correct answer is "Nemogucnost sistema da obavi zahtevanu funkciju" which translates to "Inability of the system to perform the requested function." This answer suggests that the failure of the software system is due to its inability to carry out the required task or function. It does not mention any specific technical issue like a bug in the code or a power outage.

    Rate this question:

  • 19. 

    Koja tvrdnja je tacna?

    • Svaka klasa treba da ima minimum jedan test koji se uz nju isporucuje i koji proverava njenu funkcionalnost

    • Svaka klasa treba da ima tacno jedan test koji se uz nju isporucuje i koji proverava njenu funkcionalnost

    • Svaka klasa ne sme da ima testove, vec mora da bude napisana bez ijedne greske

    • Svaka klasa ne sme da ima testove, vec mora da ima veliki broj gresaka kako testeri ne bi ostali bez posla

    Correct Answer
    A. Svaka klasa treba da ima minimum jedan test koji se uz nju isporucuje i koji proverava njenu funkcionalnost
    Explanation
    The correct answer is that every class should have at least one test that is delivered with it and checks its functionality. This means that it is important for each class to have a test that ensures its functionality is working correctly. This helps to identify any potential errors or issues with the class and allows for proper testing and verification of its functionality.

    Rate this question:

  • 20. 

    Strukturno testiranje se naziva jos:

    • Metod crne kutije

    • Metod bele kutije

    • Funkcionalno testiranje

    Correct Answer
    A. Metod bele kutije
    Explanation
    The correct answer is "Metod bele kutije" (Method of white box). This term refers to a testing approach where the tester has access to the internal structure and code of the system being tested. It involves testing the internal logic and paths of the application to ensure that all aspects are functioning correctly. This method is also known as white box testing because it allows the tester to see inside the "white box" of the system.

    Rate this question:

  • 21. 

    Kod alata JUnit, upotrebom expected parametra (na osnovu knjige - JUnit4), ocekuje se:

    • Da nema izuzetaka

    • Tacno definisani izuzetak

    • Da se baci bilo koji izuzetak

    Correct Answer
    A. Tacno definisani izuzetak
    Explanation
    The expected parameter in JUnit allows us to specify that a certain test should throw a specific exception. In this case, the correct answer suggests that the expected behavior is to have a precisely defined exception thrown during the test. This means that the test is designed to check if a particular exception is thrown under certain conditions, and if it is not thrown or if a different exception is thrown, the test will fail.

    Rate this question:

  • 22. 

    U alatu JUnit, provera da li je ocekivana vrednost (expected) jednaka izracunatoj (acutal) se proverava sa metodom:

    • VerifyEquals

    • AssertEquals

    • AssertEqual

    Correct Answer
    A. AssertEquals
    Explanation
    The correct method to verify if the expected value is equal to the actual value in JUnit is "assertEquals".

    Rate this question:

  • 23. 

    Testiranje metodom nagadjanja gresaka (error guessing) zasniva se na:

    • Detaljnoj analizi specifikacije programa

    • Prethodnom iskustvu testera i intuiciji

    • Detaljnoj analizi implementaciji programa

    Correct Answer
    A. Prethodnom iskustvu testera i intuiciji
    Explanation
    The error guessing testing method is based on the tester's previous experience and intuition. It involves using the tester's knowledge and instincts to identify potential errors or issues in the software, even without detailed analysis of the program's specification or implementation. This approach relies on the tester's ability to anticipate and guess where errors might occur based on their past experiences and understanding of the system.

    Rate this question:

  • 24. 

    Kako se zove biblioteka koju koristimo za pisanje jedinicnih testova?

    • JUnit5

    • JUnit4

    • Bash skripta

    • Nijedno od navedenog

    Correct Answer
    A. JUnit5
    Explanation
    JUnit5 is the correct answer because it is a library used for writing unit tests in Java. It provides various features and annotations to facilitate the writing and execution of unit tests. JUnit4 is also a popular unit testing library, but JUnit5 is the newer version with additional features and improvements. Bash script and "Nijedno od navedenog" (None of the above) are not relevant to unit testing in Java, so they are not the correct answers.

    Rate this question:

  • 25. 

    Da li black box tehnika podrazumeva da radimo Coverage testove?

    • Ne, zato sto nemamo izvorni kod ciji coverage bismo proveravali

    • Da, zato sto uvek moramo da radimo coverage testove

    Correct Answer
    A. Ne, zato sto nemamo izvorni kod ciji coverage bismo proveravali
    Explanation
    The correct answer is "Ne, zato sto nemamo izvorni kod ciji coverage bismo proveravali" which translates to "No, because we do not have the source code whose coverage we would check." This answer explains that black box testing does not involve coverage testing because it focuses on testing the functionality of the software without considering the internal structure or code. Since black box testing does not require the knowledge of the source code, coverage testing is not a part of it.

    Rate this question:

  • 26. 

    Koje od navedenih imena metoda nije u skladu sa konvencijom imenovanja?

    • Pozdravi_ReturnsGreetingInSerbian_IfTheLanguageIsSerbian

    • Pozdravi_ShouldReturnGreetingInSerbian_IfTheLanguageIsSerbian

    Correct Answer
    A. Pozdravi_ReturnsGreetingInSerbian_IfTheLanguageIsSerbian
    Explanation
    The correct answer is "pozdravi_ReturnsGreetingInSerbian_IfTheLanguageIsSerbian" because it does not follow the naming convention. In the convention, method names should be written in camel case, starting with a lowercase letter, and should be descriptive of the action they perform.

    Rate this question:

  • 27. 

    Ciklomatska kompleksnost grafa (V, E), gde je V skup cvorova, a E skup grana, se racuna kao:

    • CC=V-E+2

    • CC=E-V+1

    • CC=E-V+2

    Correct Answer
    A. CC=E-V+2
    Explanation
    The correct answer is CC=E-V+2. The cyclomatic complexity of a graph is calculated by subtracting the number of vertices (V) from the number of edges (E) and adding 2. This formula gives the total number of independent paths in the graph, which is a measure of the complexity of the graph.

    Rate this question:

  • 28. 

    Za graf sa slike odrediti CC:

    • 4

    • 5

    • 6

    Correct Answer
    A. 5
    Explanation
    The given answer, 5, is the correct answer for determining the CC (connected components) of the graph shown in the image. This suggests that there are 5 connected components in the graph.

    Rate this question:

  • 29. 

    U alatu JUnit, proveravanje vrednosti nekog uslova se moze raditi sa?

    • AssertFalse (condition)

    • AssertTrue (condition)

    • Upotrebom expected parametra

    Correct Answer(s)
    A. AssertFalse (condition)
    A. AssertTrue (condition)
    Explanation
    In JUnit, the values of a condition can be checked using the methods assertFalse and assertTrue. The assertFalse method checks if the condition is false, while the assertTrue method checks if the condition is true. These methods are commonly used in test cases to verify the expected behavior of a program. The "upotrebom expected parametra" option is not a valid way to check the values of a condition in JUnit.

    Rate this question:

  • 30. 

    Ukoliko je graf toka kontrole dat sa G=(V,E). gde je V skup cvorova, a E skup grana, ciklomatska kompleksnost za dati graf se racuna kao:

    • CC=E-V+2

    • CC=E-V+1

    • CC=V-E+2

    Correct Answer
    A. CC=E-V+2
    Explanation
    The correct answer is CC=E-V+2. This formula calculates the cyclomatic complexity of a control flow graph, where CC represents the cyclomatic complexity, E represents the number of edges (grana) in the graph, and V represents the number of nodes (cvorova) in the graph. By subtracting the number of nodes from the number of edges and adding 2, we can determine the cyclomatic complexity of the graph.

    Rate this question:

  • 31. 

    Koja je verzija JUnit biblioteke koju koristimo za pisanje testova na ovom predmetu?

    • 5

    • 4

    • 3

    • 11

    • 8

    Correct Answer
    A. 5
    Explanation
    The correct answer is 5 because it is the version of the JUnit library that is used for writing tests in this subject.

    Rate this question:

  • 32. 

    Kada testiramo realne vrednosti, koristimo assertEquals metod koji ima 3 argumenta, od kojih je poslednji:

    • Delta

    • Error

    • Difference

    • Datum

    Correct Answer
    A. Delta
    Explanation
    When testing real values, the assertEquals method is used with three arguments. The last argument, "delta," is used to specify the maximum allowed difference between the expected and actual values. This means that the test will pass as long as the difference between the expected and actual values is within the specified delta range.

    Rate this question:

  • 33. 

    U metode crne kutije spadaju:

    • Testiranje granicnih vrednosti

    • Iscrpno testiranje

    • Podela na klase ekvivalencije

    Correct Answer(s)
    A. Testiranje granicnih vrednosti
    A. Podela na klase ekvivalencije
    Explanation
    The correct answer is "Testiranje granicnih vrednosti" and "Podela na klase ekvivalencije". These two methods are commonly used in black box testing. Testiranje granicnih vrednosti, also known as boundary value testing, involves testing the boundaries or limits of input values to ensure that the system behaves correctly. Podela na klase ekvivalencije, or equivalence partitioning, involves dividing the input data into groups or classes that are expected to exhibit similar behavior. By testing representative values from each class, we can ensure that the system handles different inputs correctly.

    Rate this question:

  • 34. 

    Sta je alfa testiranje?

    • Tip acceptance testiranja, gde se simuliraju stvarni korisnici, a testiranje vrsi interni QA tim firme koji je razvijao softver

    • Tip acceptance testiranja, koje izvrsavaju stvarni korisnici

    • Feedback o kvalitetu koji se dobija od ogranicenog broja krajnjih korisnika kojima je dostavljena verzija softvera

    Correct Answer
    A. Tip acceptance testiranja, gde se simuliraju stvarni korisnici, a testiranje vrsi interni QA tim firme koji je razvijao softver
    Explanation
    Alfa testiranje je tip acceptance testiranja gde se simuliraju stvarni korisnici, a testiranje vrši interni QA tim firme koji je razvijao softver. Ova vrsta testiranja se obično sprovodi pre nego što se softver pusti u produkciju i omogućava timu da identifikuje bilo kakve greške ili nedostatke pre nego što softver bude dostupan širokom krugu korisnika. Ova faza testiranja takođe omogućava internom QA timu da prikupi povratne informacije o kvalitetu softvera od stvarnih korisnika, što može biti korisno za dalje poboljšanje softvera.

    Rate this question:

  • 35. 

    Pokrivanje putanja obezbedjuje:

    • Samo pokrivenost odluka

    • I pokrivenost iskaza, i pokrivenost odluka

    • Samo pokrivenost iskaza

    Correct Answer
    A. I pokrivenost iskaza, i pokrivenost odluka
    Explanation
    Pokrivanje putanja obezbeđuje i pokrivenost iskaza i pokrivenost odluka. Ovo znači da se prilikom testiranja programa moraju pokriti sve moguće putanje koda, kako bi se obezbedila potpuna pokrivenost svih iskaza (linija koda) i odluka (grananja u kodu). Samo pokrivanje iskaza ne garantuje da su sve moguće putanje koda testirane, dok samo pokrivanje odluka ne garantuje da su sve linije koda testirane. Kombinacija pokrivenosti iskaza i odluka obezbeđuje najviši nivo pokrivenosti i verovatnoće otkrivanja grešaka u programu.

    Rate this question:

  • 36. 

    Na koji nacin u Java programu ispisujemo neki podatak na standardni izlaz?

    • System.out.print

    • System.out.println

    • System.out.printf

    • Echo

    • Print

    • System.output

    Correct Answer(s)
    A. System.out.print
    A. System.out.println
    A. System.out.printf
    Explanation
    In a Java program, we can use the methods System.out.print, System.out.println, and System.out.printf to display data on the standard output. These methods are provided by the System class in Java and allow us to print text or values to the console. The echo and print options are not valid methods in Java for printing to the standard output. Similarly, there is no method called System.output.

    Rate this question:

  • 37. 

    Kada radimo testiranje celobrojnih vrednosti, o cemu moramo da vodimo racuna?

    • O tome da celi brojevi, zbog nacina binarnog zapisa, ne daju uvek predvidive rezultate

    • O tome da celi brojevi nikada ne mogu da se zavrsavaju sa 0

    • Ne moramo ni o cemu posebno da vodimo racuna kada radimo sa celobrojnim vrednostima

    Correct Answer
    A. Ne moramo ni o cemu posebno da vodimo racuna kada radimo sa celobrojnim vrednostima
    Explanation
    When performing testing on integer values, we don't need to take any special precautions. This means that we don't need to worry about any specific issues or considerations when working with integer values.

    Rate this question:

  • 38. 

    Ukoliko ulaz programa mora da bude u intervalu 1-100, ispravni testovi granicnih vrednosti su: 

    • 1, 50, 100

    • 0, 2, 99, 101

    • 0, 1, 2, 99, 100, 101

    Correct Answer
    A. 0, 1, 2, 99, 100, 101
    Explanation
    The correct answer includes all the possible boundary values for the input interval of 1-100. This means that the correct answer includes the minimum value (0), the maximum value (100), and values just outside the interval (1 and 99). Additionally, it also includes values that are significantly outside the interval (2 and 101) to test the program's robustness and error handling capabilities.

    Rate this question:

  • 39. 

    Da li je moguce pronaci i eliminisati sve bagove u softveru koji nije trivijalan?

    • Uvek

    • Ponekad, u zavisnosti od kvaliteta koda i programera

    • Nikada

    Correct Answer
    A. Nikada
    Explanation
    The answer "Nikada" suggests that it is not possible to find and eliminate all bugs in non-trivial software. This is because software development is a complex and iterative process, and even with thorough testing and debugging, it is unlikely to achieve complete bug-free software. Bugs can arise from various factors such as coding errors, system interactions, or unforeseen scenarios. Additionally, new bugs can emerge as software evolves and is used in different environments. Therefore, it is more realistic to aim for minimizing and managing bugs rather than completely eliminating them.

    Rate this question:

  • 40. 

    Sta je incident?

    • Bug pronadjen u softveru za vreme testiranja

    • Lose rukovanje sistemom od strane korisnika aplikacije

    • Simptom koji uocava korisnik i postaje svestan da postoji otkaz u sistemu

    Correct Answer
    A. Simptom koji uocava korisnik i postaje svestan da postoji otkaz u sistemu
    Explanation
    An incident refers to a symptom that is noticed by the user and makes them aware that there is a failure in the system. It is not related to a bug found during software testing or poor handling of the system by the application user.

    Rate this question:

  • 41. 

    Strukturno testiranje se moze izvrsiti na:

    • Samo na sistemskom nivou

    • Svim nivoima (jedinicno, integraciono, sistemsko)

    • Samo na integracionom nivou

    • Samo na jedinicnom nivou

    Correct Answer
    A. Svim nivoima (jedinicno, integraciono, sistemsko)
    Explanation
    Structural testing can be performed at all levels (unit, integration, system). This means that it can be conducted at each stage of the software development process, from testing individual units of code (unit testing) to testing the integration of multiple units (integration testing) and finally testing the entire system as a whole (system testing). By conducting structural testing at all levels, it ensures that all aspects of the software are thoroughly tested and any potential issues or bugs are identified and resolved.

    Rate this question:

  • 42. 

    Kada radimo sa testiranjem realnih vrednosti, o cemu moramo da vodimo racuna?

    • O tome da relani brojei, zbog nacina binarnog zapisa, mogu da budu pogresno zaokruzeni

    • O tome da realni brojevi nikada nisu zaokruzeni na jednu decimalu

    • Ne moramo ni o cemu posebno da vodimo racuna kada radimo sa realnim vrednostima

    Correct Answer
    A. O tome da relani brojei, zbog nacina binarnog zapisa, mogu da budu pogresno zaokruzeni
    Explanation
    When working with testing real values, it is important to consider that real numbers can be inaccurately rounded due to the binary representation method. This means that the representation of real numbers in binary can introduce rounding errors, leading to potential inaccuracies in calculations and comparisons.

    Rate this question:

  • 43. 

    Koja od navedenih imena metoda nisu u skladu sa konvencijom imenovanja?

    • IsVisible_ShouldReturnTrue_IfPageHasAttributeVisibleSetTo1

    • IsVisible_ShouldReturnFalse_IfPageHasAttributeVisibleSetTo0

    • IsVisible_MustReturnTrue_IfPageHasAttributeVisibleSetTo1

    • IsVisible_MustReturnFalse_IfPageHasAttributeVisibleSetTo0

    Correct Answer(s)
    A. IsVisible_MustReturnTrue_IfPageHasAttributeVisibleSetTo1
    A. IsVisible_MustReturnFalse_IfPageHasAttributeVisibleSetTo0
    Explanation
    The correct answer is "isVisible_MustReturnTrue_IfPageHasAttributeVisibleSetTo1" and "isVisible_MustReturnFalse_IfPageHasAttributeVisibleSetTo0". These method names do not follow the naming convention because they use "Must" instead of "Should" in the naming. The convention typically suggests using "Should" for method names that describe expected behavior, while "Must" implies a requirement or obligation.

    Rate this question:

  • 44. 

    Koja tvrdnja je tacna?

    • Prilikom testiranja metodom crne kutije, pisemo testove samo za metode koje su dokumentovane, cak iako postoje druge koje nisu

    • Prilikom testiranja metodom crne kutije, pisemo testove samo za sve metode, bez obzira da li su dokumentovane ili ne

    • Nijedno od preostalih navedenih tvrdnji nije tacna

    Correct Answer
    A. Prilikom testiranja metodom crne kutije, pisemo testove samo za metode koje su dokumentovane, cak iako postoje druge koje nisu
    Explanation
    The correct answer states that during black-box testing, tests are only written for documented methods, even if there are other methods that are not documented. This means that the focus is on testing the functionality of the documented methods while disregarding any undocumented methods.

    Rate this question:

  • 45. 

    Pomocu kog staticnog metoda Stream klase kreiramo tok od vise od jednog objekta?

    • Of

    • If

    • Od

    • More

    • Map

    Correct Answer
    A. Of
    Explanation
    The correct answer is "of". The static method "of" in the Stream class is used to create a stream from multiple objects. It takes a variable number of arguments and returns a stream consisting of those objects. This allows us to easily create a stream with more than one object without having to manually add each object to the stream.

    Rate this question:

  • 46. 

    U testiranju podelom na klase ekvivalencije, sve vrednosti unutar iste klase ce:

    • Proizvesti razlicit rezultat

    • Proivesti isti rezultat

    • Pronaci iste greske

    Correct Answer(s)
    A. Proivesti isti rezultat
    A. Pronaci iste greske
    Explanation
    When testing using equivalence partitioning, all values within the same class will produce the same result and identify the same errors. This is because equivalence partitioning involves dividing the input values into groups or classes that are expected to behave in the same way. By testing a representative value from each class, we can ensure that the behavior is consistent within that class. Therefore, the correct answer is "Proivesti isti rezultat, Pronaci iste greske."

    Rate this question:

  • 47. 

    Po kom redosledu treba izvrsiti testove? ***

    • Najteze testove treba izvrsiti prvo (kako bi se obezbedilo maksimalno vreme za ispravku)

    • Najlakse testove treba izvrsiti prvo ( kako bi se steklo inicijalno poverenje u sistem)

    • Najvaznije testove treba izvrsiti prvo

    • Testove treba izvrsavati po redosledu njihovog kreiranja

    Correct Answer
    A. Testove treba izvrsavati po redosledu njihovog kreiranja
    Explanation
    The correct answer is to execute the tests in the order of their creation. This means that the tests should be performed in the sequence they were developed or written. This approach ensures that the testing process follows a logical and chronological order, allowing for a systematic and organized evaluation of the system's functionality. By executing the tests in the order of their creation, any issues or bugs that arise can be traced back to the specific test case, making it easier to identify and rectify the problems.

    Rate this question:

  • 48. 

    Sta je tacno za industrijski softver:

    • Prisustvo gresaka (iako nije preporucjivo), nije kriticno

    • Resava konkretan problem korisnika

    • Dokumentacija nije neophodna

    • Razvija se sa tacno definisanim ciljem

    Correct Answer(s)
    A. Resava konkretan problem korisnika
    A. Razvija se sa tacno definisanim ciljem
    Explanation
    Industrial software is designed to solve specific problems for users and is developed with a clearly defined objective. While it is not recommended, the presence of errors in the software is not critical. Documentation may or may not be necessary depending on the complexity of the software and the target audience.

    Rate this question:

  • 49. 

    Ukoliko pomatramo unos datuma, granicne vrednosti za unos meseca su:

    • -1, 0, 13, 14

    • 1, 2, 11, 12

    • -1, 1, 11, 13

    • 0, 1, 12, 13

    Correct Answer
    A. 0, 1, 12, 13
    Explanation
    The correct answer is 0, 1, 12, 13. This is because the months in a year are typically represented by numbers ranging from 1 to 12. Therefore, the valid inputs for the month would be 1, 2, 3, ..., 12. The options -1, 0, 13, and 14 are outside of this range and would be considered invalid inputs for the month.

    Rate this question:

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

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

  • Current Version
  • Mar 15, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • Mar 24, 2020
    Quiz Created by
    Annwyn
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.