Quiz Space

Modern Application Development I · Quiz 2 · 16 Mar 2025 · January 2025 term

MAD 1 Quiz 2 16 Mar 2025 — Question 13

Question 13

+3 marksOne or more correct options

Select all that apply.

  1. A

    sales_man= Salesman.query.filter((Salesman.sales_amount >= 5000) & (Salesman.sales_amount <= 10000)).all()

  2. B

    sales_man= Salesman.query.filter(and_(Salesman.sales_amount >= 5000, Salesman.sales_amount <= 10000)).all()

  3. C

    sales_man= Salesman.query.filter(sales_amount >= 5000 and sales_amount <= 10000)

  4. D

    sales_man= Salesman.query.filter_by(sales_amount >= 5000, sales_amount <= 10000)

Show answer

Correct answers

  • A

    sales_man= Salesman.query.filter((Salesman.sales_amount >= 5000) & (Salesman.sales_amount <= 10000)).all()

  • B

    sales_man= Salesman.query.filter(and_(Salesman.sales_amount >= 5000, Salesman.sales_amount <= 10000)).all()

Question 13 of 16 in the IIT Madras BS Modern Application Development I (MAD 1) Quiz 2 paper sat on 16 Mar 2025, in the January 2025 term (IIT M DIPLOMA AN EXAM QDD2 16 Mar 2025). It carries 3 marks.

More questions from this paper

  1. Q1IIT Madras runs a BS Degree Program in Data Science & AI, which has thousands of students enrolled across multiple leve…
  2. Q2Which of the following best describes the primary advantage of asynchronous updates in web applications?
  3. Q3Figure question
  4. Q4Consider the following Python code snippet. What will be the output of the above code in the terminal?
  5. Q5Consider the HTML code given below: File name: base_layout.html Which of the following is the correct implementation of…
  6. Q6Consider the following Flask code. Assume the above code is running on http://127.0.0.1:5000 . Which of the following r…
  7. Q7A web server is handling requests and has an 8-core processor, 32 GB of RAM, and a network bandwidth of 500 Mbps. The a…
  8. Q8The lens of an HDD can read data on the rotating disk with the speed of 36,000 bits per second. The disk is designed su…
  9. Q9Figure question
  10. Q10Figure question
  11. Q11Consider the flask code below. Assume that the above flask application is running on http://127.0.0.1:5000 . Which of t…
  12. Q12Consider the following flask application running locally on http://127.0.0.1:5000. Which of the following statements is…
  13. Q14Consider the following Flask application: Assume the Flask application is running on http://127.0.0.1:5000/ . Which of …
  14. Q15Consider the following Flask-RESTful API implementation: The API is running on http://127.0.0.1:5000/. Which of the fol…
  15. Q16Consider the following flask application. app.py Which of the following statements is/are true if the application is ru…