# BCA (New) I Semester Assignments for August 2008 Session

Subject Code Subject Name Credits : 04 Book ID: B0678 Each question carries ten marks smallest number among two numbers. 2. Explain different types of constants. 3. Explain pre increment and post increment operator with an example. 4. Explain with general syntax the switch statement. 5. Write a program to compute the roots of a quadratic equation? 6. Write a program to evaluate sine series sin(x)= x-x^3/3!+x^5/5!x^7/7!+------ depending on accuracy. 7. Write a recursive program to solve Towers of Hanoi problem. 8. Explain single dimensional and two dimensional array concepts. 9. What is the difference between pointer variable and simple variable? What are the advantages of pointer variable. 10. Write any program to demonstrate the concept “ Array of structures” 6 x 10 = 60 1. What is conditional operator ? using conditional operator find a : BC 0034 : Computer Concepts & C Programming Assignment No: 01 Marks: 60

BCA (New) I Semester Assignments for August 2008 Session

Subject Code Subject Name Credits : 04 Book ID: B0678.

: BC 0034 : Computer Concepts & C Programming

Assignment No: 02 Marks: 60

1. What are the rules used in naming variable? Give examples.

2. What are precedence of operators? How expressions are
evaluated using precedences? 3. What are the commonly used input/output functions in C ? How are they accessed. 4. Explain the different types of if statements with examples. 5. Write a program to check whether a given number is palindrome. 6. Write a recursive function to find sum of even numbers from 2 to 50. 7. Write a program to add two 3x3 matrices. 8. Write a program to count the number of vowels and consonants in a given string. 9. What is a pointer ? What are the advantages of pointer. 10. Explain how unions are different from structure.