Basic programming Q & A

Question Bank

Basic programming Q & A

By rkwma040

Basic programming Q & A

  • Preparation Materials
  • Competitive Recruitment Exams
  • Academic Entrance Exams
  • Mock Test Resources
  • Sample Paper Resources
  • Topic-Wise Resources

Questions

  1. What is Programming?

    single choice · 1 Mark

    • Programming is the process of creating instructions that tell a computer how to perform tasks and solve problems
    • Programming is programming

    Answer: Programming is the process of creating instructions that tell a computer how to perform tasks and solve problems

  2. Explain the difference between compiled and interpreted languages

    single choice · 1 Mark

    • Compiled languages (e.g., C, C++) are converted into machine code before execution, resulting in faster runtime performance. Interpreted languages (e.g., Python, JavaScript) are executed line by line by an interpreter, which makes them slower but easier to debug and more flexible
    • Computer programming, also known as coding, is the process of encoding an algorithm into a programming language so that a computer can execute it. It involves designing algorithms, writing code, debugging, maintaining, and updating programs to perform specific tasks efficiently

    Answer: Compiled languages (e.g., C, C++) are converted into machine code before execution, resulting in faster runtime performance. Interpreted languages (e.g., Python, JavaScript) are executed line by line by an interpreter, which makes them slower but easier to debug and more flexible

  3. Which programming language is best for beginners?

    single choice · 1 Mark

    • Python
    • C++

    Answer: Python