What is method overriding in Python? How can you prevent it? 2 C O l L I
DefinitionSource quality review required
Anna University
| University | Anna University |
|---|---|
| Degree | B.Tech. Information and Technology |
| Department | Information and Technology |
| Regulation | Regulation 2019 |
| Semester | 7 |
| Subject Code | IT5041 |
| Subject Name | Full Stack Software Development |
| Exam Session | November / December 2023 |
| Duration | 3hrs |
| Maximum Marks | 100 |
Access the previous year question paper for your examination preparation.
View / Download PDFBrowse other previous year question papers for this subject.
View All Subject Question PapersAutomatically extracted historical question data. Academic accuracy and examination rules require verification.
Section marks require review. Marks charts are withheld.
Detected alternatives only. Confirm the actual choice rules in the original question paper.
What is method overriding in Python? How can you prevent it? 2 C O l L I
DefinitionSource quality review required
A class by name 'Point' has two data members x and y? Driver 2 C O l L3 code looks like: p1=Point(1,2) p2=Point(2,3) print(pi+p2) Output: (3,5) Develop the code for the Point class.
Other Or UnclassifiedSource quality review required
Consider the following wxPython code, 2 C 0 2 L4 import wx class MyFramework(wx.Frame): def frame(self): super.frame(parent=None, title="Hello World") self.showO if( name ==' main ': application=wx.App() framework=MyFramewrk() application.MainLoopO Draw the output of this. Write the functional (without the need to create a class) equivalent of the above code.
Other Or UnclassifiedSource quality review required
Write short notes on event handling in wxPython and give a 2 C 0 2 L I sample code.
Other Or UnclassifiedSource quality review required
Whether Node J S is involved in developing web apps using 2 C 0 3 L4 Flask? Justifv your answer.
Other Or UnclassifiedSource quality review required
MongoEngine is analogous to SQLAIchemy. Justify this 2 C 0 3 L2 statement.
Other Or UnclassifiedSource quality review required
Consider the command. $sudo dbkg -i university.deb. 2 C 0 4 L1 What are sudo and dbkg? What does this command do?
Other Or UnclassifiedSource quality review required
Differentiate Advanced Package Tool and Synaptic Package 2 C 0 4 L2 Manager.
ComparisonSource quality review required
i. Consider a directory whose path is /au/ceg/ist. Archive 2 COS L3 this folder in btech.tar.gz format. ii. Unpack the file btech.tar.gz.
Other Or UnclassifiedSource quality review required
Perform the following in Git. 2 C ^ 5 L3 i. Create a github repository ii. Add two files 'abc' and 'xyz' to the staging area iii. Remove file 'abc' from the staging area iv. Commit file 'xyz' to the local repository
Other Or UnclassifiedSource quality review required
(a) Define a class 'Employee' with two data members 'id' and 'name'. 13 C O l L3 Derive a child class 'SalaryEmployee' that inherits 'Employee', adds a data member 'weekly_salary' and a method 'calculate_payroir that returns 'weekly_salary' as it is. Derive a class 'HourlyEmployee' that inherits 'Employee', adds two members 'hours_worked' and 'hour_rate' and a method 'calculae_payroir that computes and returns the salary in terms of the two added data members. Derive a class 'CommissionEmployee' that inherits 'SalaryEmployee', adds two members 'weekly_salary' and 'commission' and a method 'calculae_payroir that computes and returns the salary in terms of weekly_salary and commission. Define a class 'PayrollSystem' that implements a method 'calculae_payroir that computes the salary of the 3 types of employees using a for loop. All classes should have init method. All derived classes should use 'super' function along with name method and along with certain methods.
DefinitionSource quality review required
(b) Define a class 'CustomComplex' that has two data members 'real' 13 C O l L3 and 'imag'. Mathematically it is possible to add any two complex numbers or add a real number to a complex number. Likewise for multiplication and division. It is necessary to configure '+','-' and '*' so that they can be used to perform the intended operation between two complex numbers or between a complex number and a real number. Create the functions def add (self,other), def sub (self,other) and def mul (self,other) so that they can perform the intended operations. The three methods 4 should be able to find out whether both the operands are complex numbers or one is complex and the other one is real.
DefinitionSource quality review required
(a) (i) Discuss the following in the context of wxPython widgets: 6 C 0 2 L I Absolute positioning and Sizers. (ii) Write wxPython code to create a user interface with two text 7 C 0 2 L3 boxes and a button (with corresponding labels) using absolute positioning method. Modify the code so that the controls are placed using sizers.
Other Or UnclassifiedSource quality review required
(b) (i) Describe event, event handlers and event loop in wxPython. 6 C 0 2 L1 (ii) Write wxPython code to create a user interface with two buttons. 7 C 0 2 L3 Two buttons are to placed in a panel. Two different event handlers are written for two different buttons. Add this panel to a frame.In the application, create an instance of the app, instance of the frame and enter MainLoop. Discuss the following in the context of Flask Python with suitable COS L2 installation commands, Python code snippets and HTML documents. i. Environment 5 ii. Routing 4 iii. URL building 4
Other Or UnclassifiedSource quality review required
(b) Explain the following in the context of Flask Python and COS L2 MongoDB with suitable Python code snippets. i. Creating/saving documents 4 ii. Accessing documents 3 iii. Updating documents 3 iv. Deleting documents 3
ExplanationSource quality review required
(a) Explain the architecture of a deployed web application in AWS in 13 C 0 4 L4 terms of presentation layer, business logic layer, database layer, in memory database, message bus, content delivery network and workflow management system.
ExplanationSource quality review required
(b) (i) Explain the following about database creation in terms of 8 C 0 4 L4 deploying a web API in deploying Heroku: setting up a cluster, setting up connection, setting up environment variables and loading data into MongoDB. (ii) Explain the following in terms of deploying a web API in Heroku: 5 C 0 4 L4 setting up Heroku, configuring Heroku and Deploying the web API in Heroku.
Other Or UnclassifiedSource quality review required
(a) (i) Explain the following steps along with the required commands: 8 COS L I installation of required packages, package selection, preparing the package and building the package. (ii) Explain the following package related Debian files: control file, 5 COS LI copyright file, changelog file and rule file.
Other Or UnclassifiedSource quality review required
(b) Explain the following steps along with the required commands in 13 COS L I the context of deploying software artifacts on Linux servers: connecting to the server, prepare the deployment directory, backup existing sources or artifacts, transfer artifacts to the server, extract and configure the artifacts. P A R T - 0 ( 1 X 15 = 15 Marks)
ExplanationSource quality review required
Develop a web app for a smart building. The application should 15 2,3,5 L5+ have the following features: smart lighting, smart temperature L6 management, smart parking, and smart repairing. Choose an appropriate front end for presentation layer, sen/er side library for business logic and a database to store the required data. The web app should have the interfaces for the administrators of the building and the users of the building. Identify the user interfaces and their appropriate components, identify the components required to implement the back end logic. Highlight the functionalities of all components. (Note: Design is sufficient and no need for code)
DesignSource quality review required
Historical analysis based on extracted question papers. Topic classifications, marks and planning estimates are provisional.