Exam Details

Subject fundamentals of programming – i
Paper
Exam / Course mca(integrated)
Department
Organization Gujarat Technological University
Position
Exam Date January, 2019
City, State gujarat, ahmedabad


Question Paper

1
Seat No.: Enrolment
GUJARAT TECHNOLOGICAL UNIVERSITY
MCA(Integrated) SEMESTER-I EXAMINATION WINTER-2018
Subject Code:4410603 Date:05/01/2019
Subject Name: Fundamentals of Programming I
Time:10.30 TO 01.00 PM Total Marks: 70
Instructions:
1. Attempt all questions.
2. Make suitable assumptions wherever necessary.
3. Figures to the right indicate full marks.
Q.1

Define a flowchart. State and name the symbols used to draw a flowchart.
Write an algorithm to check whether the given number is odd or even
Is the following assignment possible in why?
char
a="hello";
03
02
02

Do as Directed:
Define translator. Give its types.
What do you mean by unary operators?
The assignment statement is a valid expression. (true/false)? Justify.
A variable can be made constant by declaring it with the qualifier
at the time of initialization.
The statement is used to transfer control to a specified label
Which of the following is not a valid C keyword?
case b)constant char continue
The elements of an array are stored in memory locations.
07
Q.2

List down the categories of operators available in C language. Explain any 4 in detail.
07

Explain in detail the process of compilation and execution of a program. Draw an appropriate diagram and also mention the types of files used and generated.
07
OR

Write a note on tokens available in C.
07
Q.3

Compare the use of switch statement with the use of nested if……else statement. Which is more convenient? Why? Explain the importance of break in Switch statement.
07

What do you mean by user-defined functions? Explain function prototype, declaration and function body with proper examples. Also give advantages of using UDF.
07
OR
Q.3

Write a note on type conversion in expression giving suitable examples.
07

What do you mean by recursion in functions? Explain in detail. Write a program to generate Fibonacci series using function recursion.
07
Q.4

Explain in detail storage classes available in C programming language.
07

Define an array. How to declare and initialize one and two dimensional arrays. Write a C code to find average of first n natural numbers using array.
07
OR
Q.4

What is a string? How to store it in a program? Write a program to count the numbers of characters in a given string.
07
2

Write an algorithm and draw the flowchart to find the maximum of three numbers. Also write the C code for the same.
07
Q.5

Explain 4 built in String functions with syntax, use and proper examples.
07

Write a program to print the following pattern
If input=4 the output should be
4
4 3
4 3 2
4 3 2 1
07
OR
Q.5

Write a short note on looping structures available in C
07

Write a program in c to find the factorial of a given number using recursion
07



Subjects

  • advanced c programming (adv – c)
  • advanced python
  • basic mathematics for it
  • big data
  • c++ with class libraries (cpp)
  • communication skills - ii
  • communication skills-1
  • cyber security and forensics (csf)
  • data analytics with r
  • data structure
  • database management systems
  • discrete mathematics for computer science (dmcs)
  • environmental studies
  • fundamentals of computer
  • fundamentals of database management systems
  • fundamentals of networking
  • fundamentals of programming – i
  • fundamentals of web
  • information security
  • java programming
  • machine learning
  • management information systems (mis)
  • mobile programming
  • network security
  • operating system
  • operations research
  • python (py)
  • software engineering
  • software testing
  • statistical methods
  • uml & object oriented modeling
  • web development tools