All quizzesComputer Science

Programming Fundamentals

Variables, data types, loops, operators and functions, mostly in Python. Medium level, one tap per answer.

Play this quiz

Category: Computer Science By quizzyappteam 30 questions Medium

Sample 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?

  1. A fixed number that never changes
  2. A named storage location that holds a value
  3. A type of loop
  4. An error in a program

Which data type stores whole numbers?

  1. Integer
  2. Float
  3. String
  4. Boolean

Which data type can only be true or false?

  1. Integer
  2. Character
  3. String
  4. Boolean

What is a string?

  1. A whole number
  2. A sequence of characters
  3. A list of numbers only
  4. A true or false value

Which loop is best when you know in advance how many times to repeat?

  1. An if statement
  2. A for loop
  3. A switch statement
  4. A while loop with no condition

Which loop keeps repeating as long as a condition is true?

  1. An if-else statement
  2. A function
  3. A while loop
  4. A for-each loop over a fixed list

In Python, what does print(3 + 4 * 2) output?

  1. 14
  2. 10
  3. 11
  4. 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.

Computer Science 30 questions Easy

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.

Computer Science 30 questions Easy

Cybersecurity Essentials

Twenty random questions from a hard bank of thirty on attacks, encryption and staying safe online.

Computer Science 30 questions Hard