Posts

Showing posts with the label FBISE important questions class 10.

Programming In C, Linker, Loader and Debugger

Image
 Topic:  Programming In C Question: Describe the purpose of Linker, Loader and Debugger. Linker:  a linker is a computer program that takes one  or more object files generated by a compiler and  combines them into one or more executable programs. Object Code Loader:   A loader is the part of an operating system  that is responsible for loading programs and libraries.  It is one of the essential stages in the process of  starting a program Debugger:   It is a software that executes a program line by  line, examines the values stored in variables and helps in  finding and removing errors in programs.  Programming Basics. C is a popular and widely  used programming language for creating computer  programs. A large variety of application programs and  many operating system are written in C. The C language character set includes Letters:  C language comprises the following set of letters to form a standard p...

Conditional Control structure. Chapter 4, Lab Activities, Long questions.

Image
  Chapter # 4 Conditional Control structure LAB ACTIVITIES                                LONG QUESTIONS               Question 1. Write a program that reads a number and prints its square if it is greater than 10. Ans: Program: #include<stdio.h> #include<conio.h> int main(int) {             int n;             printf(“\nEnter a number:”);             scanf(“%d”, &n);             if(n>10)             printf(“\nThe square of %d is %d”, n, n*n); getch(); } Output: Enter a number:12 The square of 12 is 144. Question 2. Write a program that reads t...