Posts

Showing posts with the label FBISE important questions class 10

Programming In C, Object oriented programming, oops, characteristics of high level languages.

Image
Question 1: Write a note on Object oriented  programming(oops) Ans :  Object Orientated programming  (oops)refers to a programming method that  is based on object such as student, vehicle,  building, etc. Object Oriented Programming  Question 2: Describe the characteristics of high level languages. Ans:  High level languages have the following characteristics. These languages were developed to make computer  programming simple, easier and less prone to errors.  High level languages are not machine dependent.  They enable  programmers to write programs that are independent of a  particular type of computer. Programs written in high level languages must be translated  into machine languages by a compiler or interpreter. High level languages are highly structured. The process of finding and removing errors is very easy.

Programming in C, Variables, Numeric Variable, Character Variable.

Image
Question 1: Describe the purpose of variables. Ans:   A variable is a symbolic name that represents a value  that can change during execution of a program. A variable  has a name, known as variable name and it hold data of  other types. These are called memory  locations. Variables are of two types. 1.  Numeric Variable 2.  Character Variable Variables Question 2: What is the difference between  numeric and character  variable? Ans:   Numeric variables  are used to represent numeric values in computer programs. e.g: sum, avg, marks, etc Character variables  represent character values in computer program. It can represent a single character or a string of characters. e.g: city, gender etc.

Programming In C, main() function, global and local variables, Comments in C Language

Image
Question 1.  Describe the purpose of the  main () function and the body  of  main() function Ans:   Every C program must  have the function main() which  is the first section to be executed  when the program runs. The word void before the  function main() means that this function does not return a  value and the second void inside the brackets means it  does not have any argument. When we run a program  the main() function is always executed first no matter  where it appears in the program. The body of main() Function . The body of the function main() is surrounded by braces {}. The left brace indicates the start of the body of the function and the right brace indicates the end of the body of the  function. Question 2: Define global and local variables. Ans : Variables are used in C program to store values. Global Variables:   Global variables are declared before the main() function.  These variables are use...