Quiz Space

Python Quiz 1: 25 February 2024, Set 1 (January 2024 term)

Question 1

+4 marksOne correct option

Consider a program that accepts a word as input from the user and prints the number of vowels in it. You can assume that the input will be given in lower case.

Consider a program that accepts a word as input from the user and prints the number of vowels in it. You can assume that the input will be given in lower case.
Which of these two snippets is correct?

  1. A

    Only snippet-1 is correct

  2. B

    Only snippet-2 is correct

  3. C

    Both snippets 1 and 2 are correct

  4. D

    Both snippets 1 and 2 are incorrect

Question 2

+4 marksOne correct option
  1. A

    Only snippet-1 is correct

  2. B

    Only snippet-2 is correct

  3. C

    Both snippets 1 and 2 are correct

  4. D

    Both snippets 1 and 2 are incorrect

Question 3

+4 marksOne correct option

Which of the code snippets given below computes the minimum of three integers, not necessarily distinct from each other?

Which of the code snippets given below computes the minimum of three integers, not necessarily distinct from each other?

  1. A

    Only snippet-1 is correct

  2. B

    Only snippet-2 is correct

  3. C

    Both snippets 1 and 2 are correct

  4. D

    Both snippets 1 and 2 are incorrect

9 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 Python Quiz 1 25 Feb 2024 Set 1 paper

The IIT Madras BS Programming in Python (Python) Quiz 1 paper sat on 25 Feb 2024, in the January 2024 term, set 1: 12 questions for 36 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.

FeaturePython Quiz 1 25 Feb 2024 Set 1 at a glance
TermJanuary 2024 term
SubjectProgramming in Python
Course codeBSCS1002
Questions12
Marks36
Duration120 min
MCQ4
Numerical8
Official paperIIT M FOUNDATION AN4 EXAM QDF4 25 Feb 2024
Negative markingNo negative marking.
Updated

Other sets that day

Same Quiz 1, other subjects

More Python