Question 2
Question 3
Consider the following Python code snippet.
from jinja2 import Templatetemp = """{% for num in seq|reject("even") %}{{ num+2 }}{% endfor %}"""seq = [6,5,71,13,30,22]output = Template(temp)print(output.render(seq = seq))What will be the output if the given code is executed?
14 more questions in this paper
Sign in with Google — it is free — to see every question with its answer and explanation, practise it in learning mode, or take it as a timed mock test.
More on the MAD 1 Quiz 1 16 Oct 2022 paper
The IIT Madras BS Modern Application Development I (MAD 1) Quiz 1 paper sat on 16 Oct 2022, in the September 2022 term: 17 questions for 50 marks in 120 minutes. The first 3 questions are below. Sign in with Google — it is free — to see the whole paper with its answers and explanations, in learning mode or as a timed mock test.
| Feature | MAD 1 Quiz 1 16 Oct 2022 at a glance |
|---|---|
| Term | September 2022 term |
| Subject | Modern Application Development I |
| Course code | BSCS2003 |
| Questions | 17 |
| Marks | 50 |
| Duration | 120 min |
| MCQ | 13 |
| MSQ | 3 |
| Numerical | 1 |
| Official paper | IIT M QUIZ 1 FOUNDATION DAD DIPLOMA QPD2 16 Oct 2022 |
| Negative marking | No negative marking. |
| Updated |