Computer programming
  • 1. Computer programming is the process of designing and building instructions that tell a computer how to perform a specific task. It involves writing code using programming languages such as Java, Python, C++, and many others. Programmers need to have a deep understanding of logic, algorithms, and problem-solving skills to create efficient and reliable software. Programming is used in various applications such as developing websites, mobile apps, video games, and operating systems. It requires creativity, attention to detail, and patience to debug and improve code. Learning programming opens up opportunities in diverse industries and helps to shape the future of technology.

    Which programming language is considered 'low-level'?
A) Python
B) Assembly language
C) JavaScript
D) Ruby
  • 2. What data type is used to store whole numbers in programming?
A) Float
B) String
C) Integer
D) Boolean
  • 3. In object-oriented programming, what is a class?
A) A blueprint for creating objects
B) A text formatting style
C) A music notation
D) A type of loop
  • 4. What does IDE stand for in programming?
A) Innovative Digital Enterprise
B) Internet Database Editor
C) Integrated Development Environment
D) Interactive Design Engine
  • 5. What symbol typically denotes the start of a comment in many programming languages?
A) */
B) -->
C) <!--
D) //
  • 6. What is an algorithm in programming?
A) A set of instructions to solve a problem
B) A method of playing music
C) A visual design tool
D) A type of data structure
  • 7. Which language is often used for building web applications?
A) JavaScript
B) Swift
C) Java
D) C++
  • 8. What is the process of finding and fixing errors in a program called?
A) Compiling
B) Interpreting
C) Debugging
D) Optimizing
  • 9. What is the output of 5 + 3 * 2?
A) 10
B) 11
C) 13
D) 16
  • 10. Which data structure uses the Last In, First Out (LIFO) principle?
A) Array
B) Queue
C) Tree
D) Stack
  • 11. What is the name of the process of converting source code into machine code?
A) Interpretation
B) Compilation
C) Optimization
D) Refactoring
  • 12. What does CSS stand for?
A) Computer Software Solutions
B) Cascading Style Sheets
C) Content Structure System
D) Creative Scripting System
  • 13. Which of the following is a popular version control system?
A) MySQL
B) Python
C) HTML
D) Git
  • 14. What does API stand for in programming?
A) Application Programming Interface
B) Automated Protocol Integration
C) Accurate Program Interaction
D) Advanced Programming Interface
  • 15. What is the purpose of the 'else' statement in programming?
A) To import external libraries
B) To define a function
C) To provide an alternative code block when a condition is not met
D) To repeat a block of code
  • 16. Which symbol is used for single-line comments in many programming languages?
A) ##
B) /*
C) --
D) //
  • 17. Which symbol is used for comments in the Python programming language?
A) //
B) *
C) #
D) --
  • 18. What is the name for a small, reusable piece of code that performs a specific task?
A) Function
B) Variable
C) Division
D) Subroutine
  • 19. Which company developed the C# programming language?
A) Google
B) Apple
C) Amazon
D) Microsoft
  • 20. What is the term for the process of combining data fields and methods into a single unit?
A) Encapsulation
B) Polymorphism
C) Inheritance
D) Abstraction
  • 21. Which of the following is a popular integrated development environment (IDE) for Java development?
A) Eclipse
B) Sublime Text
C) PyCharm
D) Visual Studio Code
  • 22. Which data structure organizes items in a sequential order?
A) Array
B) Stack
C) Queue
D) Tree
  • 23. In object-oriented programming, what is the process of creating a new instance of a class called?
A) Definition
B) Instantiation
C) Declaration
D) Initialization
  • 24. What is the result of 3 + 5 in programming?
A) 3
B) 5
C) 15
D) 8
  • 25. What is the purpose of a constructor in object-oriented programming?
A) To import external libraries
B) To initialize an object's state
C) To define colors on a webpage
D) To create loops
  • 26. What is the role of a compiler in programming?
A) To translate source code into machine code
B) To design user interfaces
C) To debug errors in the code
D) To execute the code line by line
  • 27. What is the primary function of an operating system?
A) To design user interfaces
B) To create web applications
C) To manage hardware and software resources
D) To secure network connections
  • 28. What type of language is Java primarily known as?
A) Declarative
B) Object-Oriented
C) Functional
D) Procedural
  • 29. Which statement is true about the 'null' value in programming?
A) Is equivalent to zero
B) Is an error
C) Represents a variable with no value
D) Is used for logical operations
  • 30. What is the role of a function in programming?
A) To perform a specific task
B) To play audio files
C) To format text in a document
D) To display images on the screen
  • 31. Which of the following is a relational database management system?
A) HTML
B) Python
C) MySQL
D) CSS
  • 32. What is the term for a statement that is executed repeatedly based on a certain condition?
A) Variable
B) Array
C) Function
D) Loop
  • 33. Which type of programming language requires the programmer to specify the sequences of steps to follow to solve a problem?
A) Scripting
B) Declarative
C) Functional
D) Procedural
  • 34. Which of the following is an example of a conditional statement in programming?
A) if-else
B) switch-case
C) while-loop
D) for-loop
  • 35. Which type of programming language relies on a set of instructions to perform tasks?
A) Imperative
B) Functional
C) Declarative
D) Logical
  • 36. Which programming language is known for its use in data analysis and machine learning?
A) Python
B) PHP
C) R
D) C#
  • 37. What does SQL stand for in programming?
A) Software Query Link
B) Sequential Question Logic
C) Structured Query Language
D) System Query Logic
  • 38. What type of error occurs during the compilation of a program?
A) Semantic error
B) Logic error
C) Runtime error
D) Syntax error
  • 39. What type of programming language enables the programmer to specify the desired results rather than the detailed steps to achieve them?
A) Imperative
B) Functional
C) Procedural
D) Declarative
Created with That Quiz — the math test generation site with resources for other subject areas.