Programming Fundamentals Quiz

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Thames
T
Thames
Community Contributor
Quizzes Created: 7097 | Total Attempts: 80,150
| Questions: 15 | Updated: Jul 15, 2026
Please wait...
Question 1 / 16
🏆 Rank #--
0 %
0/100
Score 0/100

1. What is the primary purpose of a variable in programming?

Submit
Please wait...
About This Quiz
Programming Fundamentals Quiz - Quiz

Test your understanding of core programming concepts essential for college-level computer science. This quiz covers variables, data types, control flow, functions, object-oriented principles, and common algorithms. Assess your readiness for intermediate programming coursework and identify areas for deeper study.

2.

What first name or nickname would you like us to use?

You may optionally provide this to label your report, leaderboard, or certificate.

2. Which data type is best suited for storing decimal numbers?

Submit

3. In object-oriented programming, what is encapsulation?

Submit

4. A for loop iterates through a range. True or False?

Submit

5. What does the 'return' keyword do in a function?

Submit

6. Which of the following best describes an array?

Submit

7. The time complexity O(n) represents ____.

Submit

8. In Python, what keyword is used to define a function?

Submit

9. Inheritance allows a class to inherit properties from another class. True or False?

Submit

10. What is the result of 5 % 2 in most programming languages?

Submit

11. A ____ is a reusable block of code that performs a specific task.

Submit

12. Which statement is true about null and undefined?

Submit

13. What does an API stand for?

Submit

14. The ____ statement is used to make decisions in code based on conditions.

Submit

15. Which sorting algorithm has an average time complexity of O(n log n)?

Submit
×
Saved
Thank you for your feedback!
View My Results
Cancel
  • All
    All (15)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
What is the primary purpose of a variable in programming?
Which data type is best suited for storing decimal numbers?
In object-oriented programming, what is encapsulation?
A for loop iterates through a range. True or False?
What does the 'return' keyword do in a function?
Which of the following best describes an array?
The time complexity O(n) represents ____.
In Python, what keyword is used to define a function?
Inheritance allows a class to inherit properties from another class....
What is the result of 5 % 2 in most programming languages?
A ____ is a reusable block of code that performs a specific task.
Which statement is true about null and undefined?
What does an API stand for?
The ____ statement is used to make decisions in code based on...
Which sorting algorithm has an average time complexity of O(n log n)?
play-Mute sad happy unanswered_answer up-hover down-hover success oval cancel Check box square blue
Alert!