The document contains a sample paper with an answer key, including multiple choice questions, short answer questions, true/false statements, and matching questions related to programming concepts such as functions, arrays, and collections. It also includes long answer questions requiring program writing for calculating the area and circumference of a circle. The paper is structured to assess knowledge in programming fundamentals and data structures.
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
12 views
Class 7 Coding - Answer Key
The document contains a sample paper with an answer key, including multiple choice questions, short answer questions, true/false statements, and matching questions related to programming concepts such as functions, arrays, and collections. It also includes long answer questions requiring program writing for calculating the area and circumference of a circle. The paper is structured to assess knowledge in programming fundamentals and data structures.
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3
SAMPLE PAPER - ANWER KEY
A) Multiple Choice Question (1 marks) (10 marks)
1. What is advantages of using function a. Increase readability b. Reduces code length c. Reusability d. All of the above 2. Collections allow programmers to group multiple item into a a. Single object b. Different object c. None of these d. Multiple set 3. The real life collection which work like array a. Hospital b. Library c. Office d. None of these. 4. What is the array Index of the first Index in an array a. 2 b. 0 c. -1 d. 1 e. None 5. Which of the following is a collection data type a. Array b. List c. Set d. All of the above 6. An Array can store a. Different data type b. Same data type c. Dynamic data type d. None of these. 7. Which one is an incorrect array a. arr[ e , f , g , h ] b. arr[ 1 , 2.1 , 5 , 3.6 ] c. arr[ 10 , 2 , 5 , 3 ] d. arr[ 5.0 , 2.5 , 13.9 ] 8. What is iteration in programming a. A list of instructions which are followed in a set order b. A list of instructions which there is choice based on a condition c. A list of instruction which will loop base on a condition d. A list of instructions that will loop forward. 9. Which one is an incorrect array a. arr[ e , f , g , h] b. arr[ 4, 5 , 6 , 7 ] c. arr[ 8 , a , b , 9 ] d. arr[ 2.9 , 9.9 , 5.1 , 7.2 ] 10.Which Keyword is used to define a function in most programming languages a. Def b. Func c. Loop d. Array
B) Short Answer ( 2 Marks each) (10 marks)
1. What is array? 2. What is function? 3. What is collection? 4. Name three real life collection which work like Arrays.? 5. Write types of loop?
C) Answer the Question inTrue/False. (1 Marks each) (5 marks)
1. Function in a program decrease readability (True/False) 2. Function in a program increases code reusability (True/False) 3. A function can return a value (True/False) 4. A collection is nothing but a container that gropus multiple item into a single object (True/False) 5. The variables in an Array are always ordered sequentially with index starting with ‘1’ (True/False)
D) Match the column (2 Marks each) (10 marks)
1. Integer Any positive or negative whole no.
2. Boolean True or False
3. Function parameter Argument
4. Collection Multiple item in a single object
E) Long Answer (any 1) (5 Marks)
1. Write a program of function to calculate and Print - Area of Circle
Area of Circle (radius)
{ Area=3.14*radius*radius Print Area }
Here radius is the function parameter for the function of Area of circle
2. Write a program of function to calculate and Print - Circle of Circumference
Circumference of circle (radius) { Circumference=2*3.14*radius Print Circumference }