example questions for quiz

Simone Russolillo (5790 points)
5 10 22
asked Dec 18, 2021 in Programming in Python by Simone Russolillo (5,790 points)
Guys, it could be a nice idea to write the possible questions of the future programming quiz underneath. In this way if we all think of a question we can share it and read the others as well.

The only examples I've heard so far are:

What is the outcome of this function?

How does quick sort work?
285 views

5 Answers

rokshana03 (7140 points)
1 3 27
answered Dec 18, 2021 by rokshana03 (7,140 points)
reshown Dec 19, 2021 by rokshana03

Well, I'm not sure if those can be considered "too obvious" questions or "too basic" but maybe they could ask stuff like:

  • How is a function defined?
  • Given this snippet of a code, what error will it raise?
  • What is recursion? or maybe why is it used?
  • What are iterative control structures?
  • Given this kind of problem, which data type or what approach would be more suitable?
  • What are some lists characteristics? or What are the most useful methods for strings/lists? ( or lists)
  • Maybe what is object-oriented programming? 
  • or What requirements does a recursive function need to meet in order to be a properly designed one? (its in the slides)

 

These are the ones I could think of but eh I don't know 

a
andrealoria (1120 points)
3 5 9
commented Dec 18, 2021 by andrealoria (1,120 points)
sorry for the question,

Do we need a reservation for the exam?
rokshana03 (7140 points)
1 3 27
commented Dec 18, 2021 by rokshana03 (7,140 points)
Technically, yeah. You need to book a place on the Prodigit website at the Lab 15 or Lab 17 of the RM025 for Wednesday 22th Dec. If you haven't done it yet, doooo ittt, you can't book after Sunday
a
andrealoria (1120 points)
3 5 9
commented Dec 19, 2021 by andrealoria (1,120 points)
thanks, you saved me =)
KilianS (3590 points)
5 9 27
answered Dec 18, 2021 by KilianS (3,590 points)
check out the python quizzes on realpython.com there is a lot.

I think they might be of similar type as the exam??

Also this one was good

https://pynative.com/basic-python-quiz-for-beginners/
gabrimat (5630 points)
2 3 25
answered Dec 19, 2021 by gabrimat (5,630 points)
-What is a tree. Preorder and Postorder methods. Classes special method.

-Formatted strings syntax.
ruben.ciranni (4650 points)
7 13 31
answered Dec 19, 2021 by ruben.ciranni (4,650 points)
Some questions will be like predicting the output of a given function
Luigi Pizza (6120 points)
11 20 65
answered Dec 19, 2021 by Luigi Pizza (6,120 points)
  • f strings, 
  • dictionary, sets, lists and their differences
  • How to concatenate (or define) sets
  • Tuples of 1 element