Question 1 | MCQ
THIS IS QUESTION PAPER FOR THE SUBJECT"DIPLOMA LEVEL : MODERN APPLICATION
DEVELOPMENT I (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)
DEVELOPMENT I (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)
Solution
Which of the following is the correct match between Column A and Column B?

Solution
Logging is typically used for what purpose?
Solution
A web server has an outgoing bandwidth of 5Gbps, and each client requires 2Mbps. What is the maximum number of concurrent requests allowed? (Use: 1KB= 1000Bytes, 1MB=1000KB and so on)
Solution
Consider the following SQL Alchemy model
with below data.

Which of the following SQL Alchemy statements is used to count the number of students registered for
?
Which of the following SQL Alchemy statements is used to count the number of students registered for
Solution
What is the purpose of the primary_key=True attribute in a SQLAlchemy model?
Solution
Which of the following statements are correct regarding git?
Solution
Consider the following Python Flask code.

Which of the following options are true?
Which of the following options are true?
Solution
Consider the following Python Flask code.

Solution
Consider the following Python code.

Which of the following statement(s) should replace==Missing code here==so that it prints the output without any KeyError exception?
Which of the following statement(s) should replace==Missing code here==so that it prints the output without any KeyError exception?
Solution
Consider the following HTML/CSS code.

Read the following statements about “index.html” and choose the correct option.
Statement 1:Internal element selector blue will be overridden by ID selector red. Statement 2:Internal ID selector red will be overridden by inline styling green.
Read the following statements about “index.html” and choose the correct option.
Statement 1:Internal element selector blue will be overridden by ID selector red. Statement 2:Internal ID selector red will be overridden by inline styling green.
Solution
Consider the Flask SQLAlchemy data model.

Solution
You write an algorithm to sort N numbers (stored in an array a[0] to a[N-1]) as follows: Algorithm steps:
i. Search through the list of numbers to find the lowest number - say it is position "i" ii. Move a[i-1] to a[i], a[i-2] to a[i-1] etc, till a[0] to a[1] iii. Place the original a[i] in position 0 iv. Repeat the above steps but now starting from position 1 to N-1, then 2 to N-1 etc till all numbers are in the correct places.
What is the running complexity of this algorithm?
i. Search through the list of numbers to find the lowest number - say it is position "i" ii. Move a[i-1] to a[i], a[i-2] to a[i-1] etc, till a[0] to a[1] iii. Place the original a[i] in position 0 iv. Repeat the above steps but now starting from position 1 to N-1, then 2 to N-1 etc till all numbers are in the correct places.
What is the running complexity of this algorithm?
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. What is the total data consumed in GigaBytes by all the users in 24 hrs?

Solution
Consider the following Python code.

Solution
Consider the following Python Jinja2 template code.

Solution
Consider the following csv file.

Choose the correct Python code that will print the output:['90', '76', '81']?
Choose the correct Python code that will print the output:['90', '76', '81']?
Solution
Which of the following is the correct flask_login code snippet to register a user as logged in for the current session?
Solution
Consider the following HTML code snippet (without any CSS styling).

Which of the following statements correctly describes how the elements will be displayed by default in a browser?
Which of the following statements correctly describes how the elements will be displayed by default in a browser?
Solution
What does the following curl command do?

Solution
Comprehension Passage
Consider the following HTML and Python flask code.


Based on the above data, answer the given subquestions.
Based on the above data, answer the given subquestions.
Which of the following statements are correct for the statements below?
Statement 1:Accessing the URL:http://127.0.0.1:5000directly in the browser makes a POST request.
Statement 2:Clicking on the Submit button will invoke the GET request method.
Statement 1:Accessing the URL:http://127.0.0.1:5000directly in the browser makes a POST request.
Statement 2:Clicking on the Submit button will invoke the GET request method.
Solution
Comprehension Passage
Consider the following HTML and Python flask code.


Based on the above data, answer the given subquestions.
Based on the above data, answer the given subquestions.
What will be the rendered output for the following input in the form?

Solution
Which of the following statements are true in the context of HTML forms?
Solution
Which of the following statements are true about DOM?
Solution
Consider the following Flask RESTful API code.

Assume that the Flask app is running athttp://127.0.0.1:5000.The client sends the below CURL request in the git bash terminal.

What will be the response?
Assume that the Flask app is running athttp://127.0.0.1:5000.The client sends the below CURL request in the git bash terminal.
What will be the response?
Solution
Consider the code below in a file called 

Which of these is the correct output when the command
is run in the terminal?
Which of these is the correct output when the command
Solution
Consider the following HTML templates and Python Flask code.

Assume that the Flask app is running at
. What will be rendered for the URL request
?
Assume that the Flask app is running at
Solution
Consider the following Flask SQLAlchemy models and RESTful API code.

Solution
Consider the following HTML/JavaScript code.

The above code allows courses to be added dynamically to the
element when the user clicks the “Add” Button. What is the most suitable
given below?
The above code allows courses to be added dynamically to the
Solution
Consider the following flask application "app.py" given below.

Solution
Examine the following Python code snippet.

What will be the output when running the command:
?
What will be the output when running the command:
Solution
Inscript
A magnetic disk can spin only in one direction with a constant speed of 5000rpm. What is the maximum delay(worst-case latency) before data transfer starts (in milliseconds)?
A magnetic disk can spin only in one direction with a constant speed of 5000rpm. What is the maximum delay(worst-case latency) before data transfer starts (in milliseconds)?
Solution
Consider the following flask app. Given that
allows code to be tested without a server, which of the following statements is correct?

Solution
Shape
Thickness [ / ]
3
All colors