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