NPTEL Software Testing Week 10 Assignment Answers 2024
1. As discussed in the videos, which are the major kinds of testing applicable to test the functionality of web applications?
- Testing of web services, static and dynamic web applications.
- Testing of static and dynamic web sites.
- Client-side testing and server-side testing.
- Black-box testing and white-box testing.
Answer :- For ANswers Click Here
2. What is the main idea in bypass testing of web applications?
- Bypass testing deletes all the client-side validation checks and saves the data to send to the server.
- Bypass testing technique removes some of the client-side validation checks and sends modified data to the server to check for server responses.
- Bypass testing sends data to another server by modifying the destination details.
- Bypass testing changes the HTML constraints of the data sent by the web client.
Answer :- For ANswers Click Here
3. Which of the following is the main issue tested for in a static website?
- Testing for non-functional properties.
- Checking if there is at least one HTML hyperlink.
- Testing for dead links.
- Testing using breadth first search.
Answer :- For ANswers Click Here
4. If a web application contains a collection of web pages that are created based on the inputs given by a user or a client, which is the kind of underlying web application?
- Static website.
- Dynamic website.
- Web service.
- Client-varying website.
Answer :-
5. Consider an Application Transition Graph (ATG), modeling a piece of some server code. A transition out of the code’s execution modeling the pressing of a back or a forward button is called by which term?
- Simple link transition.
- Form link transition.
- Oprational transition.
- Redirect transition.
Answer :-
6. What are the different data layers present in the architecture of a web application?
- Data at the client-side and data at the server-side.
- Data content, data presentation and data storage layers.
- Data input and data output layers.
- Data at the unit level and integration level.
Answer :- For ANswers Click Here
Consider the Java Servlet code given in the image below. It is a simple code that takes as input, a student’s roll number and after running a query, outputs the scores of the assignments. The atomic sections are marked in the code as Pi, for 1≤i≤7. Answer the following questions with respect to testing of this server-side code.
7. State yes or no: Is there an empty atomic section in the given code?
- Yes.
- No.
Answer :-
8. Identify the atomic sections that occur as choices in the sense that only one of them will be selected for generating the website.
- There are no atomic sections with choice in the given code.
- The atomic sections with choice are P4 and P5.
- The atomic sections with choice are (1) P4 and P5, and (2) P3 and P6.
- The atomic sections with choice are (1) P4 and P5, and (2) P1 and P6.
Answer :-
9. What do the atomic sections P1 and P7 take care of in the given code?
- These atomic sections take care of generating the header and body tags of the HTML file that will be sent to the client browser.
- These atomic sections ensure that correct data is sent to the server by the client.
Answer :-
10. Identify the component expression corresponding to the given code.
- P1⋅((P∗2⋅P3⋅(P4|P5))|P6)⋅P7.
- P1⋅((P2|P3)⋅(P4|P5)|P6)⋅P7.
- P1⋅(P2⋅P3⋅(P4|P5)|P6)⋅P7.
- P1⋅(((P2|P3)⋅(P4|P5))|P6)⋅P7.
Answer :- For ANswers Click Here