Test your programming basics with this quiz. Challenge your knowledge of core programming concepts such as variables, loops, and functions.
What is a variable in programming?
Which of these is a data type?
Which symbol is used for comments in Python?
What is a function?
What does 'if' do in programming?
What is a loop used for?
What keyword defines a function in Python?
Which loop runs at least once in most languages?
What is a syntax error?
Which of these is a loop?
Which symbol is used for equality comparison?
Which is not a programming language?
What is the result of 5 % 2?
Which of these denotes a string in most languages?
What does 'return' do in a function?
What is indentation used for in Python?
Which of the following is used to accept input in Python?
Which data type stores true or false values?
What will 'len("apple")' return in Python?
Which of the following is used to loop over a list?
Which is used to handle exceptions in Python?
What is the output of 'print(2**3)'?
What is the meaning of DRY in programming?
Which is an example of a loop control statement?
Which operator is used for string concatenation in Python?
Which of these best defines a compiler?
What is recursion?
Which of the following is a valid variable name?
What is a string?
Which of these is used for decision making?
Learnpages and our partners use cookies to store and access information such as unique IDs to deliver, maintain, and improve our services and ads.
Privacy Statement Terms & Conditions
Control how we use your data. You may object to processing based on Legitimate Interest.