Showing posts with label Computer Sciemce 10th Notes - Computer Sciemce - Short / Detailed Questions Answers. Show all posts
Showing posts with label Computer Sciemce 10th Notes - Computer Sciemce - Short / Detailed Questions Answers. Show all posts

FUNCTIONS:Chapter # 05: COMPUTER SCIENCE 10TH – DETAILED QUESTION ANSWERS

 COMPUTER SCIENCE 10TH – DETAILED QUESTION ANSWERS

Chapter # 05: FUNCTIONS

Q.1: What do you know about functions?

Ans:
INTRODUCTION TO FUNCTIONS
A function is a block of code that performs a particular task. It is also called a method or a sub-routine or a procedure, etc. There are some situations when we need to write a particular block of code more than once in our program. This may lead to bugs and irritation for the programmer. C++ language provides an approach in which you need to declare and define a group of statements once and that can be called and used whenever required. This saves both time and space. Every C++ program has at least one function, which is main(), and all the programs can define additional functions.

CONTROL STRUCTURE-Chapter # 04- COMPUTER SCIENCE 10TH – DETAILED QUESTION ANSWERS

 COMPUTER SCIENCE 10TH – DETAILED QUESTION ANSWERS

CONTROL STRUCTURE
Chapter # 04


Q.1: What are control structures?

Ans:
CONTROL STRUCTURES / STATEMENTS
Control structures control the flow of execution in a program or function. Control structures are used to repeat any block of code, transfer control to a specific block of code, and make a choice by selection. There are three basic control structures in C++ programming:

  1. Selection / Decision Making Control Structure
  2. Loops / Iteration Control Structure
  3. Jumps

INPUT / OUTPUT HANDLING IN C++ Chapter # 03- COMPUTER SCIENCE 10TH – DETAILED QUESTION ANSWERS

 COMPUTER SCIENCE 10TH – DETAILED QUESTION ANSWERS

INPUT / OUTPUT HANDLING IN C++
Chapter # 03


Q.1: Describe basic structure of C++ program.

Ans:
BASIC STRUCTURE OF C++ PROGRAM
A C++ program is mainly divided into three parts:

  1. Preprocessor Directives
  2. Main Function Header
  3. Body of program / Function

Basics of Programming in C++ -Chapter #02- Computer Science 10th - Detailed Question Answers

 Computer Science 10th - Detailed Question Answers

Basics of Programming in C++

Q.1: Define Computer Program?
Ans. Computer Program:
A computer program is a set of instructions that performs a specific task when executed by a computer. A computer requires programs to function and typically executes the program's instructions in a central processing unit. A computer program is usually written by a computer programmer in a programming language.

PROBLEM SOLVING AND ALGORITHM DESIGNING-Chapter #01- COMPUTER SCIENCE 10TH – DETAILED QUESTION ANSWERS

 COMPUTER SCIENCE 10TH – DETAILED QUESTION ANSWERS

PROBLEM SOLVING AND ALGORITHM DESIGNING

Q.1: What is problem solving?
Ans.
PROBLEM SOLVING:
Problem solving is a procedure to figure out the solution of complex problems. Problem solving is the main process in computer programming, where programmers first understand the problem, plan the solution, and then understand how to translate the algorithm into something a computer can do, and finally how to write the specific syntax or code required by a computer to get the job done.