Programming Fundamentals
Variables, data types, loops, operators and functions, mostly in Python. Medium level, one tap per answer.
Play this quizSample questions
The author has made the opening questions public. Play the full quiz in the app to see the rest, with answers and explanations.
What is a variable in programming?
- A fixed number that never changes
- A named storage location that holds a value
- A type of loop
- An error in a program
Which data type stores whole numbers?
- Integer
- Float
- String
- Boolean
Which data type can only be true or false?
- Integer
- Character
- String
- Boolean
What is a string?
- A whole number
- A sequence of characters
- A list of numbers only
- A true or false value
Which loop is best when you know in advance how many times to repeat?
- An if statement
- A for loop
- A switch statement
- A while loop with no condition
Which loop keeps repeating as long as a condition is true?
- An if-else statement
- A function
- A while loop
- A for-each loop over a fixed list
In Python, what does print(3 + 4 * 2) output?
- 14
- 10
- 11
- 24
Study this on QuizzyApp. Answer against the clock, review every question afterwards with the correct answer and the author's explanation, and track the topics you keep getting wrong. Open this quiz or browse everything else.
More in Computer Science
Computer Basics
Hardware, software, binary and shortcuts. A fast warm-up with a speed bonus.
Internet and Networking Basics
How the internet works, from IP addresses and DNS to routers and ports. Take your time, with explanations after each answer.
Cybersecurity Essentials
Twenty random questions from a hard bank of thirty on attacks, encryption and staying safe online.