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 the following snippet of HTML and its output rendered on the browser:

Solution
A 6000 rpm magnetic disk is being used to store data. The disk can only spin in one direction and is operating at 6000 revolutions per minute. If the operating system sends a request to the disk controller to fetch data from the disk, but by the time the request reached the disk controller, the information had already moved 35 degrees passed the reader, what will be the latency (in milliseconds) before it can start retrieving data?
Solution
Solution
Consider the following function to be tested and test functions given in the Python code snippet below.

On running this file on the terminal using pytest, the summary of the output is;

What command will result into the outcome given above?
On running this file on the terminal using pytest, the summary of the output is;
What command will result into the outcome given above?
Solution
Solution
An HTML code and CSS code is given below. Which of the following correctly represents its rendered output?


Solution
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.

Which of the following is the correct matching?
Which of the following is the correct matching?
Solution
Consider the following table “emp” created in SQLite database corresponding to model class “Employee” using flask_sqlalchemy.

Which of the following code snippets will change the designation of male teachers to professor and will increase their salaries to 6000 correctly when typed in the Python console?
Which of the following code snippets will change the designation of male teachers to professor and will increase their salaries to 6000 correctly when typed in the Python console?
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
Consider the following statements and select the correct option.
Statement 1: It is not necessary to implement server-side validation if client-side validation has been implemented.
Statement 2: Client-side validation can be implemented with HTML5.
Statement 1: It is not necessary to implement server-side validation if client-side validation has been implemented.
Statement 2: Client-side validation can be implemented with HTML5.
Solution
Consider the following statements and select the correct answer.
Statement 1: In PaaS, developers are provided with an up-to-date development environment with the languages and frameworks of their choice.
Statement 2: Microsoft Azure provides IaaS as well as PaaS services.
Statement 1: In PaaS, developers are provided with an up-to-date development environment with the languages and frameworks of their choice.
Statement 2: Microsoft Azure provides IaaS as well as PaaS services.
Solution
Consider the following statements and choose the correct option.
Statement 1: If we submit the form using the GET method, then the form data is appended inside the body of the HTTP request.
Statement 2: Never use GET method in form to send sensitive data while it is good for non-secure data, like query strings in Google
Statement 1: If we submit the form using the GET method, then the form data is appended inside the body of the HTTP request.
Statement 2: Never use GET method in form to send sensitive data while it is good for non-secure data, like query strings in Google
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 python code snippet.

Solution
Solution
Which of the statements are true?
Solution
Choose the correct code snippet to implement logging by importing python logging module
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 graph that represents the variation in bandwidth of a network for an entire day (24 hours). Three users were connected to the network at three different times of the day. Which user has consumed the highest amount of data?

Solution
Consider the following restful implementation using flask.

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
Consider the following flask application.

Solution
Follow the code given below

Solution
Shape
Thickness [ / ]
3
All colors