Skip to main content

Posts

Showing posts from March, 2021

SOLUTION OF THE 2019-2020 PAPER

                                                                                SECTION-A A).Name different storage class with one example each. Ans: Register Storage classes            Static Storage classes           External Storage classes B).Describe the functionalities of Operating System. Ans: The functionality of operating system are as follows:          1.security                                                                 4.coordination b/w software and users.          2.control over system performance               5.processor management           3.memory management                                      6. file management           C). Diffrentiate between Implicit and Explicit Type Conversion. Ans: IMPLICIT TYPE CONVERSION: This is the method in which the compiler converts one data type to another data type by itself. EXPLICIT TYPE CONVERSION. This is the method of converting one data type to another data type by forcing or commanding the compiler. D).What do you und

PROGRAM TO PRINT THE REAL ROOTS OF THE QUADRATIC EQUATION

 Here is the code to print the real roots of the quadretic equation: #include <stdio.h> #include <math.h> main() {    float a,b,c,root1,root2;    printf("enter the cofficients of a b and c");    scanf("%f %f %f ",&a &b &c);    dis=(b*b)-(4*a*c);    root1=(-b+sqrt(dis))/(2*a);    root2=(-b-sqrt(dis))/(2*a);    printf("root1=%0.2f \n root2= %0.2f",root1,root2); } FOR MORE PROGRAMS : CLICK HERE   FOR COMPUTER SCIENCE NOTES: CLICK HERE  

Program To Print The Series of numbers

 This is the program to print the series:  234567 34567 4567 567 67 7 The code is as follows: #include <stdio.h> main() {     int p,a;     p=2;     for(int i=1;i<=6;i++)     {       a=p;       for(int j=1;j<=(6-i);j++)       {           printf(a);           a=a+1;       }       printf("\n");       p=p+1;     } } FOR MORE PROGRAMS : CLICK HERE FOR COMPUTER SCIENCE NOTES : CLICK HERE                                                                  

PROGRAM TO CHECK WHEATHER A NUMBER IS PALINDROME

 HERE IS THE PROGRAM TO CHECK A PALINDROME NUMBER. #include <stdio.h> int main() {     int number,sum,a,n;     printf("enter the number to be checked");     scanf("%d",&number);     n=number;     while(n>0)     {         a=n%10;         sum=sum*10+a;         n=n/10;     }     if(number==sum)     {         printf("the number %d is a palindrome number",sum);     }     else     {         printf("the number %d is not a palindrome number",sum);     } } FOR MORE PROGRAMS  :  CLICK HERE FOR COMPUTER SCIENCE NOTES : CLICK HERE