Home / Placement Papers (page 3)

Placement Papers

Technical Questions Asked In Adobe

Technical Questions 1.Write a program to calculate factorial of a number #include #include int main() {int i,num,fact=1; cout<<”\nenter integer:”; cin>> num; i=num; while(num>0) { fact= fact*num; –num; } cout<< fact; return 0; } 2.Given the following for loop : const int Z=25; for(int i=0,sum=0;i sum +=i;} cout<< sum; Write equivalent …

Read More »