Introduction to Programming Quiz - CBSE Class 11 ICT
Free practice quiz: Introduction to Programming (CBSE Class 11 ICT). 20 multiple-choice questions with answers and explanations. Play online, no sign-up needed.
Play all 20 questions freeSample questions
What is an algorithm?
- A type of computer hardware
- A step-by-step procedure to solve a problem
- A programming language
- A type of software
Show answer
Answer: B. A step-by-step procedure to solve a problem
An algorithm is a set of instructions or rules designed to solve a specific problem or accomplish a particular task.
What is the purpose of a compiler?
- To execute a program directly
- To translate high-level code into machine code
- To debug a program
- To write a program
Show answer
Answer: B. To translate high-level code into machine code
A compiler converts code written in a programming language into a language the computer's processor can understand.
Explain the difference between a compiler and an interpreter.
- Both are the same
- Compiler translates whole program at once, interpreter executes line by line
- Compiler executes line by line, interpreter translates whole program at once
- Compiler translates a part of the program, interpreter translates the whole program
Show answer
Answer: B. Compiler translates whole program at once, interpreter executes line by line
Compilers translate the entire program into machine code before execution, while interpreters execute code line by line.
What is a function in programming?
- A block of code that performs a specific task
- A type of variable
- A type of data structure
- A type of loop
Show answer
Answer: A. A block of code that performs a specific task
Functions are reusable blocks of code that enhance modularity and code reusability.
What is a data structure?
- A way to organize data
- A type of programming language
- A type of algorithm
- A type of variable
Show answer
Answer: A. A way to organize data
Data structures are used to efficiently store and manage data.