Question Bank (Problem solving Using C)2022_23

 Q.1 Define-

1)compiler 2) Interpreter    3) Linker 4) types of array 5) Array 6) Function 7)Algorithm 8) Pseudo Code 9)Function type 10)Conditional or ternary operator


Q.2)Explain syntax with example:
1) For 2) switch 3) while 4) do-while 5) Nested if-else 6)If-else ladder 7) Recursive function

Q.3)Write algorithm and draw flow chart of question
1) swapping of two Numbers
2) Write algorithm and draw flowchart  to find out factorial of a number.
3)Write  an  algorithm  and  draw  a  flowchart  to  find  the  maximum-of  3  no's.
4)Write  an  algorithm  and  draw  a  flowchart  to check given number palindrome Number or not?

Q.4) Write C program
1)Write  a  'C'  program  to  accept  a  number  and  check  whether it  is  an  Armstrong  number.
2)Write  a  'C'  program  to check given number is even or odd using function.
3)Write  a  'C'  program  to reverse the number.
4)Write  a  'C'  program  to sum of digit of given number.
5)Write a C program  to accept mxn matrix find sum of all elements.
6)Write a C program  to accept mxn matrix to find transpose of matrix.
7)Write a C program  to accept two mxn matrices find sum of matrices.

Q.5)Write following function

i) getchar() ii)putchar() iii)puts() iv)printf() v)scanf() vi)gets()

i)isupper() ii)isalpha() iii) isdigit() iv)


Q.6)Answer the following question

1)Explain how can be declare and initialize 2D arrays. 

2)Explain different types of operators available in C.

3)Explain the structure of C program.

4)Define algorithm? write characteristics of algorithm.

5)What is machine language?

6)Define operator.

7)Explain Comma Operator. 

8)Explain  ones  complement  operator  with  example.

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

10)write the Application of arrays and function.

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);

}


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.(d)Conditional operator

18)Evaluate the expression

a)a=3/2 * 4 + 3/8

b)a=2*3/4 + 4/4 + 8 -2 + 5/8

19)List the different type of Storage class.

 

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.