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