Why is exception handling is required for python

Assignment Help Software Engineering
Reference no: EM132865068

There are 11 questions.

Questions 1 to 3 are snippets of code questions with vulnerabilities to identify, explain, and correct where applicable.
Question 4 relates to user requirements and version control.
Question 5 is about testing.
Question 6 deals with continuous deployment.
Question 7 is about software decommissioning.
Question 8 is about python expression and statement
Question 9 is about python Exception Handling
Question 10 is about python Exception and Error
Question 11 is a set of 5 multiple choice questions of application testing.

Assessment

1) Scripting vulnerability
Given the snippet of code below find solutions to the following statements:
1) Identify this type of attack.
2) Explain this vulnerability and how it can happen.
3) Explain how it can be fixed.
<!DOCTYPE html>
<html>
<head></head>
<body>
<h1>Insecure Web Page</h1>
<p>
This website has poor security features. Explain why.
</p>
<h3>Add Your Comment</h3>
<div>
Poor Coding Style! <script>alert('You See I Got You!')</script>
</div>
</body>
</html>

2) Explain what the malicious snippet of code below does
protected void doGetRequestedData(HttpServletRequestsvltrq, HttpServletResponsesvltresp) {
String name = svltrq.getParameter("NAME");
StringBuffersbres = new StringBuffer();
String query = "SELECT fullname FROM emp WHERE name = '" + name + "'";
ResultSetrs = DB.createStatement().executeQuery(query);
res.append("<table class=\"table\"><tr><th>Employee</th></tr>");
while (rs.next()) {
sbres.append("<tr><td>");
sbres.append(rs.getString("fullname"));
sbres.append("</td></tr>");
}
sbres.append("</table>");
svltresp.getWriter().append(sbres.toString());
}

3) You will be provided with a folder that has an application with vulnerable code. Follow the provided instructions to answer the set questions.
SQL injection/Input validation task 10 marks(error identification 4 marks. Correcting them 4 marks, testing to show that there are no more issues 2 marks).

4) User requirements
A restaurant called NotEatingOutTonight has decided to go digital. For that they have decided to develop an Online home delivery service.
They hired you as a consultant and security expert to gather business requirements using user story and evil user story mapping techniques.

As security must be embed within your design, ensure that confidentiality, integrity, availability, and non-repudiation are covered.

Using the scrum board below rewrite the specified user stories for each sprint by including not only the corresponding user story but also their acceptance criteria in addition to their evil stories.

You must include a first, second, and third version of your design to show the implementation of version control.

5) Explain with examples where applicable the differences between manual and automated testing. You must focus on the characteristics that need considering while writing scripts to perform automated testing.

6) How do you secure continuous deployment for applications in the cloud

7) Explain the reasons for software decommissioning and how this process can be handled

8.What is the difference between an expression and a statement in Python?

9. Why is Exception Handling is required for python?

10. What is a difference between an error and exception?

11) Multiple choice questions

1. A ..... is a deviation from the specified or expected behaviour that is visible to end-users.
a) an error
b) a fault
c) a failure
d) a defect

2. It is during the ...... stage that the tester design test cases.
a) Test recording.
b) Test configuration.
c) Test planning.
d) Test specification

3.) Which of the following standards set the general principles for Component Testing?
a) BS7925-2
b) IEEE 829
c) BS7925-1
d) IEEE 610

4. What do you think testing should be based on when testing large systems?
a) Only few tests
b) Test Cases written by test expert engineers
c) Test Cases
d) Risks

5. Which of the subsequent statement is not a typeof incremental testing methodology?
a) Big bang
b) Top down
c) Bottom up

Attachment:- BAC exams.rar

Reference no: EM132865068

Questions Cloud

What is adjusting journal entry to record accrued salaries : The employees of Neat Clothes work Monday through Friday. What is the adjusting journal entry to record accrued salaries at the end of June
Discuss the crowdsourcing on social media trend : Using your own words, discuss the crowdsourcing on social media trend and user-generated content trend in Malaysia.
Implementing an hr strategic plan : Provide brief answers for the following questions related to Implementing Human Resource Strategic Plan.
Example of government economic intervention : As governments and political leaders respond to economic and political changes, they create incentives for companies to do business within their market
Why is exception handling is required for python : Explain the reasons for software decommissioning and how this process can be handled and What is the difference between an expression and a statement in Python
Explain ethical issues in digital business : Explain FOUR (4) ethical issues in digital business and provide an example of each issue.
Define the future of e-commerce over the next five years : a) What factors will help define the future of e-commerce over the next five years?
What annual rate of simple interest was charged : Edward was charged interest of $80 for a loan amount of $2,400 that he borrowed for 120 days. What annual rate of simple interest was charged
Country economic bloc impacting trade for country : What Economic Blocs are Impacting Trade in Canada, China, and Brazil?

Reviews

len2865068

4/22/2021 5:35:33 AM

Kindly check and show your expert the attached question sheet and according to the given instructions I need to prepare answer by tomorrow.

Write a Review

Software Engineering Questions & Answers

  Research report on software design

Write a Research Report on software design and answer diffrent type of questions related to design. Report contain diffrent basic questions related to software design.

  A case study in c to java conversion and extensibility

A Case Study in C to Java Conversion and Extensibility

  Create a structural model

Structural modeling is a different view of the same system that you analyzed from a functional perspective. This model shows how data is organized within the system.

  Write an report on a significant software security

Write an report on a significant software security

  Development of a small software system

Analysis, design and development of a small software system.

  Systems analysis and design requirements

Systems Analysis and Design requirements

  Create a complete limited entry decision table

Create a complete limited entry decision table

  Explain flow boundaries map

Explain flow boundaries map the dfd into a software architecture using transform mapping.

  Frame diagrams

Prepare a frame diagram for the software systems.

  Identified systems and elements of the sap system

Identify computing devices, which could be used to support Your Improved Process

  Design a wireframe prototype

Design a wireframe prototype to meet the needs of the personas and requirements.

  Explain the characteristics of visual studio 2005

Explain the characteristics of Visual Studio 2005.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd