Pages

Theory question bank



What is call by value and call by reference? Explain with one example for each.
What is data structure?
What are the different type of data structure
What is mean by flow chart and pseudo code
Draw flowchart for factorial no
Define algorithm and explain characteristics of algorithm         
Define the term: Data, Data Object, Data Structure
Determine the frequency count for line no.3
i=2n;
for j=1to I
for k=3 to j
m=m+1     


Find the frequency count and time complexity of the following code
For i=20 to 30
For j=1 to n
Am=am+1
End
end
Define three asymptotic notations.
Explain in detail the concept of data object, data structures, linear data structure and non-linear data structure.
What is Asymptotic notation ? Write an  algorithm for matrix multiplication for n × n matrix and find out its time complexity by frequency count.
Explain execution of the following code step by step and show the final output :
void display (int);
int main( )
{ int x = 4;
display (x);
return 0; }
void display (int n)
{ if (n > 0)
display (n – 1);
printf (“%d”, n);
}

No comments:

Post a Comment