CS:101 Problem solving Using C(Question Bank)

                        Problem solving Using C(Question Bank) 

1) Give syntax and use of following functions:

i) getchar

ii)putchar

iii)puts

iv)printf

v)scanf

vi)gets

2)Explain different types of operators available in C.

3)Explain the structure of C program.

4)Write algorithm and draw flowchart  to find out factorial of a number.

5)What is machine language?

6)Define operator

7)What  is  a  compiler  ?

8)Explain  ones  complement  operator  with  example.

9)What  is  an  identifier  ?  Give  the  rules  of  identifier.

10)Write  an  algorithm  and  draw  a  flowcahrt  to  find  the  maximumof  3  no's.

11)Find  the  output  of  the  following  program  and  justify  :

1)         main(  ){   

            int  x  =  100;

            printf  (“\n  x  =  %d”,  10  +  x++);

            printf  (“\n  x  =  %d”,  10  +  ++x);

            }

2)

Main(  )

{

int  a=10,  b=20;

{

int  c=30;

printf("%d  %d  %d",  a,  b,  c);

}

printf("%d  %d  %d",  a,  b,  c);

}

 

12)Write  a  'C'  program  to  accept  a  number  and  check  whetherit  is  an  Armstrong  number.

13) Explain  any two  storage  classes  with  proper  example.

14)C  is  middle  level  language.  Comment.

15) State  different  data  types.

16) Who developed ‘C’  language 

17) Explain  with  example  :

(a) Relational  operators(b) Logical  operators(c)  Increment  operators.

18)Write  algorithm  and  draw  flowchart  for  calculating  maximum of  two  numbers.

 


Comments

Popular posts from this blog

Slip 11: Write node js application that transfer a file as an attachment on web and enables browser to prompt the user to download file using express js.

Slip 7 Create a node js file named main.js for event-driven application. There should be a main loop that listens for events, and then triggers a callback function when one of those events is detected.

Slip 1(a) Write an Angular 13 application addition of two numbers using ng-init, ng-model & ng-bind. And also demonstrate ng-show, ng-disabled, ng-click directives on button component.