Question 1 | MCQ
THIS IS QUESTION PAPER FOR THE SUBJECT"DIPLOMA LEVEL : MODERN APPLICATION DEVELOPMENT 1 (COMPUTER BASED EXAM)"
ARE YOU SURE YOU HAVE TO WRITE EXAM FOR THIS SUBJECT?
CROSS CHECK YOUR HALL TICKET TO CONFIRM THE SUBJECTS 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 SUBJECTS 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 three components of a todo list app based on an MVC architecture.
A - stores a list of all the tasks that the user has submitted along with attributes like completion status.
B - can display which tasks were completed, which tasks are pending, receive new tasks from the user etc.
C - can set a task in the list of tasks as completed, add a new task to the list of tasks, delete old tasks, retrieve a list of pending tasks and so on.
Given the above capabilities of the different components, choose the correct option:
A - stores a list of all the tasks that the user has submitted along with attributes like completion status.
B - can display which tasks were completed, which tasks are pending, receive new tasks from the user etc.
C - can set a task in the list of tasks as completed, add a new task to the list of tasks, delete old tasks, retrieve a list of pending tasks and so on.
Given the above capabilities of the different components, choose the correct option:
Solution
Which of the following statements is/are correct?
Statement 1: In client-server architecture, the client and the server MUST be on separate machines
Statement 2: In peer-to-peer architecture, the network is always more fault-tolerant
Statement 1: In client-server architecture, the client and the server MUST be on separate machines
Statement 2: In peer-to-peer architecture, the network is always more fault-tolerant
Solution
In relational databases, a column stores (1) _______ and a row stores (2) ________.
Solution
Which of the following helps us to create custom HTML elements?
Solution
Which of the following git command will remove a file from the staged area but keeps the file in the directory?
Solution
Consider the following graph that represents the variation in bandwidth and number of users connected to a network for an entire day (24 hours). What will be the total data consumed (in Gigabytes) by the user that is connected to the internet network throughout the day?

Solution
Consider a client ‘C’ and a server ‘S’, separated by distance ‘D’ are connected by a fictitious medium in which the speed of light is ‘v’ m/sec. If ‘N’ is the number of consecutive requests that can made in a second by the client ‘C’ (i.e A new request can be made only after receiving the response from the previous request.), Which of the following changes would double the number ‘N’?
Solution
Consider the following flask app.

Solution
Which of the following is/are a correct way to use for loop in jinja?
Solution
Solution
Consider the following HTML Document.

How will the browser render the HTML document given above?
How will the browser render the HTML document given above?
Solution
Solution
Consider the following flask app and Jinja2 template.


Solution
Consider the following Python code snippet.

Solution
Consider the following function to be tested and test functions given in the Python code snippet below.

Solution
Consider the following Python code snippet.

Solution
Consider the code below and match the conditions in Column A with respect to the coverage types in Column B.

Solution
Match the following types of testing with their functionality.

Solution
Consider the following table “emp” created in SQLite database corresponding to model class “Employee” using flask_sqlalchemy.

Solution
Consider the following python code snippet app.py, the html files, base.html and home.html residing in “templates” folder.


Solution
Consider the following SQL create statement.

Solution
What can be inferred from the Entity-Relationship Diagram below:

Solution
Consider a typical Amazon Alexa device. Which of the following would constitute the view of the application behind such a device?
Solution
Which of the following is true of “cold storage” like Amazon Glacier?
Solution
Consider the following flask application.

Solution
Follow the code given below

Solution
Consider the following flask application.

Solution
Consider the following python code snippet. What will be the rendered output?

Solution
Solution
What will be the output of the following Python code snippet?

Solution
Consider the following flask application.

Solution
Consider the following sorting algorithm which sorts any given unsorted array of numbers in ascending order. What would be its time complexity? (Assume appending and deleting an element from an array does not affect time complexity)
Step 1: Create an empty array.
Step 2: Find the element in the unsorted array with the minimum value.
Step 3: Append this element to the array created in step 1.
Step 4: Delete this element from the unsorted array.
Step 5: Repeat steps 1 to 4 until the unsorted array is empty.
Step 1: Create an empty array.
Step 2: Find the element in the unsorted array with the minimum value.
Step 3: Append this element to the array created in step 1.
Step 4: Delete this element from the unsorted array.
Step 5: Repeat steps 1 to 4 until the unsorted array is empty.
Solution
Shape
Thickness [ / ]
3
All colors