Question 1 | MCQ
THIS IS QUESTION PAPER FOR THE SUBJECT"DIPLOMA LEVEL: MODERN APPLICATION DEVELOPMENT 1"
ARE YOU SURE YOU HAVE TO WRITE EXAM FOR THIS SUBJECT?
CROSS CHECK YOUR HALL TICKET TO CONFIRM THE SUBJECT TO BE WRITTEN.
(IF IT IS NOT THE CORRECT SUBJECT, PLS CHECK THE SECTION AT THE TOP FOR THE SUBJECTS REGISTERED BY YOU)
ARE YOU SURE YOU HAVE TO WRITE EXAM FOR THIS SUBJECT?
CROSS CHECK YOUR HALL TICKET TO CONFIRM THE SUBJECT TO BE WRITTEN.
(IF IT IS NOT THE CORRECT SUBJECT, PLS CHECK THE SECTION AT THE TOP FOR THE SUBJECTS REGISTERED BY YOU)
Solution
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.

Solution
If the given python program is executed using pytest, then identify the status of the test code.

Solution
Which of the following lines can be used in a template to inherit anotherbase.htmltemplate that provides a basic, uniform layout?
Solution
Which of the following routes binds theindex()function to the application's root URL and renders theindex.htmltemplate?
Solution
In which of the following options,url_for()function calls will produce URL http://localhost:5000/home?
Solution
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
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
Solution
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
Note: The answer must be an integer. For ex: If the octal representation is (39)8, then you must write 39 only
Solution
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?

https://onlinedegree.com/academics?course=appdev1#week2
Which of the following options correctly describes each component of the URL given above?
Solution
Consider the following flask python snippet with all preliminary conditions.

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
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
Solution
Which of the following is the correct order of precedence to reflect the effect of style in HTML documents?
Solution
Which of the following Jinja templates correctly implements a simpleif-elsestatement?
Solution
A template nameduserinfo.htmlcontains the following line inside the body tag:

Which of the following code snippets will utilize the template to displayHello Ramwhen http://localhost:5000/user/Ramis visited on the browser?
Which of the following code snippets will utilize the template to displayHello Ramwhen http://localhost:5000/user/Ramis visited on the browser?
Solution
Which line of code correctly adds the belowHelloclass as a resource to a Flask application to get data using“http://localhost:5000/hello"URL?

Solution
A server using the inbuilt http module of Python, is running for a directoryMy_appwhose file structure and content of each file is given below.

Solution
Match the following:

Which of the following is the correct?
Which of the following is the correct?
Solution
Which of the following statement(s) is/are false regarding Git?
Solution
Which of the following statement(s) is/are true regarding database migrations?
Solution
Consider the following Model for User.

Solution
Consider the following constraints for the“student”table:

For the above student table, which of the following columns would be the most appropriate for the indexing?
For the above student table, which of the following columns would be the most appropriate for the indexing?
Solution
Solution
Solution
Consider the following Python code snippet.

If the above application is running locally on URL: http://127.0.0.1:5000, select the correct statement(s).
If the above application is running locally on URL: http://127.0.0.1:5000, select the correct statement(s).
Solution
Consider the following two tables, user1 and logstable:

Which of the following query/ queries will return the log ID and log name, which are created by user ‘Shaun’?
Which of the following query/ queries will return the log ID and log name, which are created by user ‘Shaun’?
Solution
Comprehension Passage
Consider the following jinja2 template, and answer the given subquestions.

What will be the output on the terminal for:

Solution
Comprehension Passage
Consider the following jinja2 template, and answer the given subquestions.

What will be the output on the terminal for:

Solution
Comprehension Passage
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.]

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.]
What is the network bandwidth (in Mbps) of the network at exactly 12:30 pm?
Solution
Comprehension Passage
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.]

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.]
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]
Solution
Comprehension Passage
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.

Consider the following model classes “Movies” and “Producers” corresponding to tables “movies” and “producers”, respectively, in the SQLite database.
The tables “movies” and “producers” are related to each other by which of the following relationships
Solution
Comprehension Passage
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.

Consider the following model classes “Movies” and “Producers” corresponding to tables “movies” and “producers”, respectively, in the SQLite database.
Solution
Comprehension Passage
Solution
Comprehension Passage
Solution
Comprehension Passage
Solution
Shape
Thickness [ / ]
3
All colors