MauryaHub PYQ Practice

Application Development - 1 · End Term · Sep 2022 · AN

Application Development - 1 · End Term · Sep 2022 AN

← Course papers · Start practice / exam

Questions and published explanations below are available without starting a test. Some questions may not have a published solution yet.

0 / 33 published solutions

Question 55 MSQ · 4.0 marks

Source diagram or notation
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.Source diagram or notation
      **AppDev1** **Section Id :** 64065329419 **Section Number :** 3 **Section type :** Online **Mandatory or Optional :** Mandatory **Number of Questions :** 28 **Number of Questions to be attempted :** 28 **Section Marks :** 100 **Display Number Panel :** Yes **Group All Questions :** No **Enable Mark as Answered Mark for Review and** Yes **Clear Response :** **Maximum Instruction Time :** 0

A published solution is not available for this question yet.

Report a correction for Q55

Question 57 MCQ · 2.0 marks

Consider the following HTML document with script which is running at the URL http://127.0.0.1:8000, then choose the correct output of the JSON object.
Source diagram or notation
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q57

Question 58 MCQ · 2.0 marks

If the given python program is executed using pytest, then identify the status of the test code.
Source diagram or notation
A.
passed test1.py test_answer - assert 2 == 3
B.
2 Failed
C.
1 passed
D.
Failed test1.py test_answer - assert 2 == 3

A published solution is not available for this question yet.

Report a correction for Q58

Question 59 MCQ · 2.0 marks

Which of the following lines can be used in a template to inherit another **base.html** template that provides a basic, uniform layout?
A.
{% expand 'base.html'%}
B.
{% include 'base.html'%}
C.
{% extends 'base.html'%}
D.
{% inherits 'base.html' %}

A published solution is not available for this question yet.

Report a correction for Q59

Question 60 MCQ · 2.0 marks

Which of the following routes binds the **index()** function to the application's root URL and renders the **index.html** template?
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q60

Question 61 MCQ · 2.0 marks

In which of the following options, **url_for()** function calls will produce URL **http://localhost:5000/home**?
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q61

Question 62 MCQ · 2.0 marks

Read the following statements carefully and mark the correct answer: **Statement 1:** Continuous integration is the practice of automating the integration of code changes from multiple contributors into a single software project **Statement 2:** Continuous Delivery refers to automated delivery of “release package” on each successful test
A.
Both statements 1 and 2 are correct
B.
Both statements 1 and 2 are incorrect.
C.
Statement 1 is correct, but statement 2 is incorrect.
D.
Statement 2 is correct, but statement 1 is incorrect.

A published solution is not available for this question yet.

Report a correction for Q62

Question 63 NAT · 2.0 marks

Compute the octal representation of the binary number (01000101)2. **Note: The answer must be an integer. For ex: If the octal representation is (39)8, then you** **must write 39 only**

A published solution is not available for this question yet.

Report a correction for Q63

Question 64 MCQ · 3.0 marks

Consider the URL given below. https://onlinedegree.com/academics?course=appdev1#week2 Which of the following options correctly describes each component of the URL given above?
Source diagram or notation
A.
1-C, 2-A, 3-D, 4-B, 5-E
B.
1-C, 2-A, 3-E, 4-B, 5-D
C.
1-A, 2-C, 3-D, 4-B, 5-E
D.
1-C, 2-A, 3-B, 4-E, 5-D

A published solution is not available for this question yet.

Report a correction for Q64

Question 65 MCQ · 3.0 marks

Consider the following flask python snippet with all preliminary conditions.
Source diagram or notation
If the above program is running in the URL “http://127.0.0.1:8000” then what will be the output for the given URLs in sequence ● http://127.0.0.1:8000 ● http://127.0.0.1:8000/logout ● http://127.0.0.1:8000/home
A.
current user is lily logged out Unauthorized user
B.
Rose logged in logged out Unauthorized user
C.
Rose logged in current user is Rose logged out
D.
lily logged in current user is lily logged out

A published solution is not available for this question yet.

Report a correction for Q65

Question 66 MCQ · 3.0 marks

Which of the following is the correct order of precedence to reflect the effect of style in HTML documents?
A.
internal > inline > external
B.
inline > internal > external
C.
inline > external > internal
D.
external > internal > inline

A published solution is not available for this question yet.

Report a correction for Q66

Question 67 MCQ · 3.0 marks

Which of the following Jinja templates correctly implements a simple **if-else** statement?
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q67

Question 68 MCQ · 3.0 marks

A template named **userinfo.html** contains the following line inside the body tag:
Source diagram or notation
Which of the following code snippets will utilize the template to display **Hello Ram** when **http://localhost:5000/user/Ram** is visited on the browser?
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q68

Question 69 MCQ · 3.0 marks

Which line of code correctly adds the below **Hello** class as a resource to a Flask application to get data using **“http://localhost:5000/hello"** URL?
Source diagram or notation
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q69

Question 70 MCQ · 3.0 marks

A server using the inbuilt http module of Python, is running for a directory **My_app** whose file structure and content of each file is given below.
Source diagram or notation
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q70

Question 71 MCQ · 3.0 marks

Match the following:
Source diagram or notation
Which of the following is the correct?
A.
A-1, B-2, C-3, D-4
B.
A-2, B-4, C-1, D-3
C.
A-3, B-4, C-2, D-1
D.
A-4, B-3, C-1, D-2

A published solution is not available for this question yet.

Report a correction for Q71

Question 72 MSQ · 3.0 marks

Which of the following statement(s) is/are false regarding Git?
A.
Git is an example of a centralized version control system.
B.
A file can stay in both working directory and staging area at a given time, while working with Git.
C.
Git and GitLab/GitHub are essentially the same.
D.
The command “git checkout -b <branch_name> ” will create the new branch and switches to the new branch created.

A published solution is not available for this question yet.

Report a correction for Q72

Question 73 MSQ · 3.0 marks

Which of the following statement(s) is/are true regarding database migrations?
A.
Flask does not provide support for migrations, as of December 2022.
B.
The database migration allows a developer to make schema changes without losing the data
C.
One of the disadvantages of migration is that a developer can only upgrade the database, and it does not allow rollbacks.
D.
The migration is useful when a business wants to move from an on-premise database to a cloud based database.

A published solution is not available for this question yet.

Report a correction for Q73

Question 74 MSQ · 3.0 marks

Consider the following Model for User.
Source diagram or notation
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q74

Question 75 MCQ · 4.5 marks

Consider the following constraints for the **“student”** table:
Source diagram or notation
For the above student table, which of the following columns would be the most appropriate for the indexing?
A.
RollNo
B.
Name
C.
Section
D.
Department

A published solution is not available for this question yet.

Report a correction for Q75

Question 76 MSQ · 4.5 marks

Source diagram or notation
A.
python module_0.py MAD 1
B.
python module_0.py MAD-2
C.
python module_0.py BDM
D.
python module_0.py SysCom

A published solution is not available for this question yet.

Report a correction for Q76

Question 77 MSQ · 4.5 marks

Source diagram or notation
A.
Software package A is slower than Software package B for inputs in the range N ∈ [0,3]
B.
Software package B is slower than Software package A for inputs in the range N ∈ [0,3]
C.
Software package B is faster than Software package A for all N > 3.
D.
Time taken by both the software packages A and B is the same when N = 3.

A published solution is not available for this question yet.

Report a correction for Q77

Question 78 MSQ · 4.5 marks

Consider the following Python code snippet.
Source diagram or notation
If the above application is running locally on URL: http://127.0.0.1:5000, select the correct statement(s).
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q78

Question 79 MSQ · 4.5 marks

Consider the following two tables, user1 and logstable:
Source diagram or notation
Which of the following query/ queries will return the log ID and log name, which are created by user ‘Shaun’?
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q79

Question 80 MCQ · 3.0 marks

Consider the following jinja2 template, and answer the given subquestions.
Source diagram or notation
What will be the output on the terminal for:
Source diagram or notation
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q80

Question 81 MCQ · 3.0 marks

Consider the following jinja2 template, and answer the given subquestions.
Source diagram or notation
What will be the output on the terminal for:
Source diagram or notation
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q81

Question 82 MCQ · 2.0 marks

Consider the below graph, and answer the given subquestions. The bandwidth vs. time graph for a period of one hour between 12 noon to 1 p.m in the afternoon is shown below. [Use relations: 1 Byte = 8 bits, 1 GB = 1000 MB and so on.]
Source diagram or notation
What is the network bandwidth (in Mbps) of the network at exactly 12:30 pm?
A.
5
B.
6
C.
7
D.
8

A published solution is not available for this question yet.

Report a correction for Q82

Question 83 MCQ · 4.5 marks

Consider the below graph, and answer the given subquestions. The bandwidth vs. time graph for a period of one hour between 12 noon to 1 p.m in the afternoon is shown below. [Use relations: 1 Byte = 8 bits, 1 GB = 1000 MB and so on.]
Source diagram or notation
What is the total amount of data (in GigaBytes) consumed by the only user connected to the network between 12:15 pm to 12:30 pm? [Assuming that the user is using the entire bandwidth from 12:15 p.m to 12:30 p.m]
A.
81
B.
8.1
C.
1.0125
D.
10.125

A published solution is not available for this question yet.

Report a correction for Q83

Question 84 MCQ · 3.0 marks

Consider the below model definitions, and answer the given subquestions. Consider the following model classes “Movies” and “Producers” corresponding to tables “movies” and “producers”, respectively, in the SQLite database.
Source diagram or notation
The tables “movies” and “producers” are related to each other by which of the following relationships
A.
One-to-one
B.
One-to-many
C.
Many-to-Many
D.
Many-to-One

A published solution is not available for this question yet.

Report a correction for Q84

Question 85 MSQ · 4.5 marks

Consider the below model definitions, and answer the given subquestions. Consider the following model classes “Movies” and “Producers” corresponding to tables “movies” and “producers”, respectively, in the SQLite database.
Source diagram or notationSource diagram or notation
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q85

Question 86 MCQ · 3.0 marks

Source diagram or notationSource diagram or notation
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q86

Question 87 MCQ · 3.0 marks

Source diagram or notationSource diagram or notation
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q87

Question 88 MCQ · 4.5 marks

Source diagram or notationSource diagram or notation
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.Source diagram or notation
      **TDS** **Section Id :** 64065329420 **Section Number :** 4 **Section type :** Online **Mandatory or Optional :** Mandatory **Number of Questions :** 47 **Number of Questions to be attempted :** 47 **Section Marks :** 50

A published solution is not available for this question yet.

Report a correction for Q88