Tamil Nadu Board of Secondary EducationHSC Science Class 12th

Tamil Nadu Board Samacheer Kalvi solutions for Class 12th Computer Science Answers Guide chapter 1 - Function [Latest edition]

Advertisement Remove all ads

Chapters

Tamil Nadu Board Samacheer Kalvi solutions for Class 12th Computer Science Answers Guide chapter 1 - Function - Shaalaa.com
Advertisement Remove all ads
Advertisement Remove all ads

Chapter 1: Function

Evaluation
Evaluation [Pages 8 - 10]

Tamil Nadu Board Samacheer Kalvi solutions for Class 12th Computer Science Answers Guide Chapter 1 Function Evaluation [Pages 8 - 10]

Part I - Choose the best answer (1 Mark)

Evaluation | Q 1. | Page 8

The small sections of code that are used to perform a particular task are called ______

  • Subroutines

  • Files

  • Pseudo code

  • Modules

Evaluation | Q 2. | Page 8

Which of the following is a unit of code that is often defined within a greater code structure?

  • Subroutines

  • Function

  • Files

  • Modules

Evaluation | Q 3. | Page 8

Which of the following is a distinct syntactic block?

  • Subroutines

  • Function

  • Definition

  • Modules

Evaluation | Q 4. | Page 8

The variables in a function definition are called as ______

  • Subroutines

  • Function

  • Definition

  • Parameters

Evaluation | Q 5. | Page 8

The values which are passed to a function definition are called ______

  • Arguments

  • Subroutines

  • Function

  • Definition

Evaluation | Q 6. | Page 8

Which of the following are mandatory to write the type annotations in the function definition?

  • Curly braces

  • Parentheses

  • Square brackets

  • indentations

Evaluation | Q 7. | Page 8

Which of the following defines what an object can do?

  • Operating System

  • Compiler

  • Interface

  • Interpreter

Evaluation | Q 8. | Page 8

Which of the following carries out the instructions defined in the interface?

  • Operating System

  • Compiler

  • Implementation

  • Interpreter

Evaluation | Q 9. | Page 8

The functions which will give exact result when same arguments are passed are called ______

  • Impure functions

  • Partial Functions

  • Dynamic Functions

  • Pure functions

Evaluation | Q 10. | Page 9

The functions which cause side effects to the arguments passed are called ______

  • impure function

  • Partial Functions

  • Dynamic Functions

  • Pure functions

Part II - Answer the following questions (2 Marks)

Evaluation | Q 1. | Page 9

What is a subroutine?

Evaluation | Q 2. | Page 9

Define Function with respect to Programming language.

Evaluation | Q 3. | Page 9

Write the inference you get from X:=(78).

Evaluation | Q 4. | Page 9

Differentiate interface and implementation.

Evaluation | Q 5. i) | Page 9

Which of the following is a normal function definition and which is a recursive function definition.

let rec sum x y:
   return x + y

Evaluation | Q 5. ii) | Page 9

Which of the following is a normal function definition and which is a recursive function definition.

let disp :
    print ‘welcome’

Evaluation | Q 5. iii) | Page 9

Which of the following is a normal function definition and which is a recursive function definition.

let rec sum num:
   if (num!=0) then return num + sum (num-1)
   else
   return num

Part III - Answer the following questions (3 Marks)

Evaluation | Q 1. | Page 9

Mention the characteristics of Interface.

Evaluation | Q 2. | Page 9

Why strlen is called pure function?

Evaluation | Q 3. | Page 9

What is the side effect of the impure function? Give example.

Evaluation | Q 4. | Page 9

Differentiate pure and impure functions.

Evaluation | Q 5. | Page 9

What happens if you modify a variable outside the function? Give an example.

Part IV - Answer the following questions (5 Marks)

Evaluation | Q 1. (i) | Page 10

What are called Parameters and write a note on Parameter without Type?

Evaluation | Q 1. (ii) | Page 10

What are called Parameters and write a note on Parameter with Type?

Evaluation | Q 2. i) | Page 10

Identify in the following program.

let rec gcd a b:=
      if b <> 0 then gcd b (a mod b) else return a

Name of the function?

Evaluation | Q 2. ii) | Page 10

Identify in the following program.

let rec gcd a b:=
      if b <> 0 then gcd b (a mod b) else return a

Identify the statement which tells it is a recursive function?

Evaluation | Q 2. iii) | Page 10

Identify in the following program.

let rec gcd a b:=
      if b <> 0 then gcd b (a mod b) else return a

Name of the argument variable.

Evaluation | Q 2. iv) | Page 10

Identify in the following program.

let rec gcd a b:=
      if b <> 0 then gcd b (a mod b) else return a

A statement that invokes the function recursively?

Evaluation | Q 2. v) | Page 10

Identify in the following program.

let rec gcd a b:=
      if b <> 0 then gcd b (a mod b) else return a

The statement which terminates the recursion?

Evaluation | Q 3. | Page 10

Explain with example Pure and impure functions.

Evaluation | Q 4. | Page 10

Explain with an example interface and implementation.

Advertisement Remove all ads

Chapter 1: Function

Evaluation
Tamil Nadu Board Samacheer Kalvi solutions for Class 12th Computer Science Answers Guide chapter 1 - Function - Shaalaa.com

Tamil Nadu Board Samacheer Kalvi solutions for Class 12th Computer Science Answers Guide chapter 1 - Function

Tamil Nadu Board Samacheer Kalvi solutions for Class 12th Computer Science Answers Guide chapter 1 (Function) include all questions with solution and detail explanation. This will clear students doubts about any question and improve application skills while preparing for board exams. The detailed, step-by-step solutions will help you understand the concepts better and clear your confusions, if any. Shaalaa.com has the Tamil Nadu Board of Secondary Education Class 12th Computer Science Answers Guide solutions in a manner that help students grasp basic concepts better and faster.

Further, we at Shaalaa.com provide such solutions so that students can prepare for written exams. Tamil Nadu Board Samacheer Kalvi textbook solutions can be a core help for self-study and acts as a perfect self-help guidance for students.

Concepts covered in Class 12th Computer Science Answers Guide chapter 1 Function are Introduction to Function, Function with Respect to Programming Language, Interface Vs Implementation, Pure Functions.

Using Tamil Nadu Board Samacheer Kalvi Class 12th solutions Function exercise by students are an easy way to prepare for the exams, as they involve solutions arranged chapter-wise also page wise. The questions involved in Tamil Nadu Board Samacheer Kalvi Solutions are important questions that can be asked in the final exam. Maximum students of Tamil Nadu Board of Secondary Education Class 12th prefer Tamil Nadu Board Samacheer Kalvi Textbook Solutions to score more in exam.

Get the free view of chapter 1 Function Class 12th extra questions for Class 12th Computer Science Answers Guide and can use Shaalaa.com to keep it handy for your exam preparation

Advertisement Remove all ads
Share
Notifications



      Forgot password?
View in app×