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

  What are the advantages of a web server?

What are the advantages of a Web server?

  What is the dre for the modeling activity

What is the DRE for the modeling activity - it has been determined that 30 errors were found during the modeling activity

  Construct an entity relationship diagram

Ibadan City Council Car Park System Create and explain at least five opportunities and at least five objectives of proposedStudent Book Exchange System

  Suggestions for viable guidelines

Do you think that variations in company and societal culture could pose a significant problem when coordinating or scheduling large assignments,

  Explain how you think having a framework

Explain how you think having a framework, such as ITIL, in place would have affected the outcome of your example IT change and why.

  Evaluate the importance quality of service has to designers

Evaluate the importance quality of service has to designers. Choose two areas discussed in the textbook you would focus your attention to ensure quality of service for a team of designers that you were managing

  Draw the class diagram for your design using uml notation

Design software for Tony's store using Object-Oriented principle. Draw class diagram for your design using UML notation and briefly explain your design choices.

  Florida condominiums are popular winter retreats for many

florida condominiums are popular winter retreats for many north americans. in recent years the prices have steadily

  Itech1100 jacket oasis assignment problem

Assignment - Jacket Oasis - Interpret and construct representations of business data flow and processes and Outline the basic principles of programming

  Discuss current trends and directions for health care

Discuss 3 current trends and directions for health care delivery in the United States and the role that managed care has in shaping those 3 trends

  How else could the attribute skill be modeled

What is the degree of the Include relationship? How else could attribute Skill be modeled? Is it possible to attach any attributes to the Includes relationship?

  Define the program development cycle,why it is called cycle

Describe the importance of using a structured, modular approach when creating program requirements, design, and code.

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