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