Python Programming: Advanced (Leaving Cert Computer Science): Quizzes

📚Quizzes
Python Programming: Advanced
Sign up to keep practising.Create a free account to play more quizzes and track your progress.

Practise the questions

10 questions from this quiz

Show

What is a nested conditional?

One conditional inside another

In nested conditionals, when does the inner condition run?

Only after the outer condition is met

How does the inner loop behave in nested loops?

Runs fully for each outer loop pass

What do f-strings do with variables inside curly braces?

Replace them with their values

What keyword is used to define a function?

def

How does 'return' differ from 'print'?

return hands value back, print displays

What is recursion?

A function calling itself

What happens without a base case in recursion?

RecursionError from stack overflow

What is the base case in the factorial function?

if n == 0, return 1

In recursion, what happens as calls go 'back up'?

Each call returns result to one above

Explore Leaving Cert Computer Science Revision Notes by Topics

Explore Leaving Cert Computer Science Model Answers by Topics

Explore Leaving Cert Computer Science Flashcards by Topics

Explore Leaving Cert Computer Science Exam Questions by Topics

Join 100,000+ Leaving Cert students studying Quizzes with us.

Select your subjects, and get access to A+ resources today.