0% found this document useful (0 votes)
0 views

mca-1-sem-problem-solving-and-programming-in-c-2017

Hgareeqe fuck youuuuujjj

Uploaded by

satyabhai8658
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
0 views

mca-1-sem-problem-solving-and-programming-in-c-2017

Hgareeqe fuck youuuuujjj

Uploaded by

satyabhai8658
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 3
reawmevonno: [TT TTT TTT) Total Number of Pages: 03 bputonline.com 1st Semester Regular /Back Examination 2016-17 Problem Solving and Programming In C BRANCH: MCA bputonline.com Time: 3 Hours Max Marks: 100 Q.CODE: Y518 Answer Part-A which is compulsory and any four from Part-B. The figures in the right hand margin indicate marks. Fart —A (Answer ail the questions) at Ansiwer the following questions: bputonline.com (2x 10) 8) Convert (12F.B3hs into octal number system, b) Find the output ‘void maint inta= 15, b= 10, o=5, W(a>b>c) printi(oe"), ‘else printi(Taise); } Cidtrue (li) false (i) 15 (iv) 10 for solving @ mathematical problem in a oe) ins procedure Tike nombor of taps tal fequentyinvoWes repttion of an operation. 1) What will be the output of the following cade: void rnaing }{ char af "OCEAN", ave; pairs a (OCEAN @)CEAN (DEAN (lv) Compiler error @) What would be the vaiue of ' afler execution of the following statements? by 50,50 (i) 32, 62 (i) 23,26 (iv) 32, 32 f) The declaration float K [13] = eo ‘WA one-dy-thwee array A thee by-one array. (i) A three-by-three array Oo eon: g) Consider a 32 b& compiler, We need to store address of integer variable to integer pointer. The size of integer pointer is 1h) The dynamic memory allocated using malloc } contains garbage values. State whether True/F alse bputonline.com b) ¢) a) What will be the output? Sdetine SQUARE( A) A“ A wold main( = Sach, SQUARES 10°6 ) ) 0) Square: 18 () Square= 256 (if) Square= 78 (lv) None of these Identity the wrong declaration staterramt, (int *p,a 810: @ Was pee: (i int “p= Ba, a= 10, (iv) Both (i) and (19) bputonline.com Answer the following questions xin Find the value of "x, “(x+2), “(x+ 10} tor the following declaration: (char “x ® “SALUTE TO INDIAN ARMY. ‘What is the output of the following cede? tinchude iddefine MIN( xy) ((x*¥) Px 8¥) void main inte bputonline.com ae MIN? + 4,7 -4); orn ("Md") ireacate ietuwen ato & etna vores, Give eres for eon Calculate the address. of arr [3 Jf 3) In the fotiowing deciarmtion, int arr{4){S}; where the base address af arr is 08800 ‘What Is the qutput of the follewing code’? vold malin int x =5, Drintin Yd Md Hod Wn x x4 <2. 2), Find the output of the following code: hae ch. "ptr, pire Ach: printf(* %ed %d *, sizeoffch), sizeot(ptr) ); Find the outputicompliation errors {if any): void main }{ ital 1.2.3.4.8.6) int “par =a + 2; print" %d hd", “+a, ptr): ) Fing the output, void main( ){ eee, 10.0, 13.5, 90.5, 0.5); feat = te 0}; float “ptr? = ptr+ 3; Printi( * %6f *, "ptr2); prin" ha", pt pr: Write the minimal number of execution for do..while and while loop. bputonline.com Q3 a4 Qs a6 Q7 as as a) b) a) b) a) b) a) b) a) b) a) b) b) Pi (Answer any four questions) Design a menu driven program in C that performs the following operations: (i) To check a number is prime or not. (i)To check a number is Krishnamurthy number or not. A Krishnamurthy number is one whose sum of factorial of digits of the number equals the number. (iii) To check a number is palindrome or not. What is the difference between break and continue? Write a program to print the Floyd's triangle. Differentiate between ~allcc( ) and callloc( ). Create an array dynamically of n integers and son the a:tay in descending order. Then, find the maximum and minimum number present in the array. Write a program that wil read a positive integer and find its binary equivalent. bputonline.com Differentiate between Call-By-Value and Call-By-Reference. Write a function that takes two numbers and find the GCD of two numbers using pointer. Write a recursive function to find the power of a number. Write a program to implement the following operations: (i) A function that checks whether two strings are equal or not. (i) Implement a function that copy the contents of one string in another string Write a program that reads a sequence of strings from user input and counts the uppercase and lowercase characters present in the strings. The sequence is terminated with the input BYE. oa a Write a program to create a record of n employees where nis the user input with the following attributes: Employee 1D, Emplayee name, Salary, Contact No, Designation. Display the employee id, employee name, total ‘salary of employee based on the following bonus given at the end of the year: ‘Salary _ Bonus >= 90,000 30% >=70,000 and < 80,000 | 20% >=50,000 and <70,000_| 10% Others 5% What is self-referential structure? Explain it by taking an example. Write a program that takes two files input and then concatenate the contents of two files in a third file. Write the use and syntax of following file operations: fscant (), fprint{( ), fseek( ). What is command-line arguments? Write a program that find the smallest of two numbers using command-line arguments Write a program that takes a m x n matrix and check the matrix is square or not. If yes, then find the transpose of the matrix without using second matrix. Differentiate betweer: array of pointers and pointer to an array. Give an example in each case to explain between them. bputonline.com (10) (5) (2+8) 5) (2+8) 5) (10) (5) (10) (6) (10) (5) (10) (5)

You might also like