Exam Details

Subject programming in c
Paper
Exam / Course diploma engineering
Department
Organization Gujarat Technological University
Position
Exam Date May, 2017
City, State gujarat, ahmedabad


Question Paper

1/2
Seat No.: Enrolment
GUJARAT TECHNOLOGICAL UNIVERSITY
DIPLOMA ENGINEERING SEMESTER I/II • EXAMINATION SUMMER- 2017
Subject Code: 320016 Date: 14 06 2017
Subject Name: Programming in C
Time: 10:30 AM 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.
4. Each question carry equal marks (14 marks)
Q.1

Define flowchart. Explain its symbols with the example.
07





Define operator. Explain Relational and Bitwise operators with example.
07

Bitwise

Q.2

Explain different data types of language.
07


data types


Define Algorithm. Write an algorithm to find maximum out of given three numbers.
07

numbers maximum

OR

Explain basic structure of program.
07



Q.3

Explain while and do while loop with example.
07


While do while loop


Explain Nested if else statement with example.
07

Nested if else statement

OR
Q.3

Give rules for naming variable in and state whether the given variable names are True or False. If false than give reason too.
roll-no _name float result.
07


variable naming variable name
roll-no _name float result.


Define Array. Write a program to read 10 numbers in array from user and print the array.
07

Array array read array

2/2

Q.4

List string functions. Explain strcpy() and strcmp().
07


String functions strcpy() strcmp()


Explain recursion with example.
07

Recursion

OR
Q.4

Define pointer. Explain void pointer with example.
07


Pointer pointer


Define structure called student describing details rollno, name and percentage.
Write a program to read and print data of 3 students.
07

rollno, name percentage student structure student read

Q.5

Explain following file functions:
fopen() fclose() fread() feof()
07


functions
fopen() fclose() fread() feof()


Give difference of following:
Structure and Union
puts() and printf()
07


Structure and Union
puts() and printf()

OR
Q.5

Write a program to add two 3×3 matrix.
07


3×3 matrix add


Write a program to print following pattern:
1
1 2
1 2 3
1 2 3 4
07

pattern
1
1 2
1 2 3
1 2 3 4




Other Question Papers

Subjects

  • a. c. distribution & utilization
  • a.c. distribution & utilization
  • advance manufacturing system
  • advanced building materials
  • advanced computer programming
  • advanced mathematics (group-1)
  • advanced mathematics(group-2)
  • aircraft maintenance-ii
  • aircraft navigation and radio system
  • aircraft performance & stability
  • applied electronics and instrumentation
  • applied science-i (physics)
  • applied science-ii(chemistry)
  • architectural drawing-ii
  • automation in fabrication technology
  • automobile electrical system
  • automobile engines
  • automobile transmission & mechanism
  • basic automobile design
  • basic avionics
  • basic chemistry ( group-4)
  • basic control system
  • basic design
  • basic electronic circuits
  • basic electronics
  • basic of electrical and electronics engineering
  • basic of electrical engineering
  • building material
  • chemical engineering plant economics
  • chemical process equipment design
  • chemical process technology - i
  • chemical process technology - ii
  • chemical process technology –i
  • civil engineering drawing
  • cnc machines
  • communication engineering- i
  • communication engineering-ii
  • communication skill
  • communication skill-ii (aa)
  • communication skills
  • computer aided modelling & design
  • computer application in wet processing
  • computer graphics
  • computer maintenance
  • computer organization and architecture
  • construction technology
  • construction works management
  • control system components
  • costing estimation & management
  • d.c.circuits
  • data & computer communication
  • data structure management
  • database management system
  • database programming with vb.net
  • design fundamental-i
  • design fundamental-ii
  • design visualization
  • digital electronics
  • drying and firing
  • dyes and pharmaceuticals
  • ecology & environmental pollution
  • electical machine-1
  • electrical installation & maintenance
  • electrical instrumentation
  • electrical machine-ii
  • electronic materials & components
  • electronic materials and component
  • electronic networks
  • electronics devices and circuits-i
  • electronics devices and circuits-ii
  • electronics instrument & measurements
  • electronics networks & lines
  • elements of civil engineering
  • elements of mechanical engineering
  • engineering drawing
  • engineering mechanics
  • english communication and architecture vocabulary
  • entrepreneurship development
  • environmental monitoring
  • essentials of environment & seismic engineering
  • estimating & costing
  • estimating and costing - i
  • extrusion die design
  • fabric structure - ii
  • fabrication technology
  • fabrication technology - ii
  • fiber optic communication
  • finishing technology for textile
  • fluid flow operation
  • fluid mechanics & hydraulic machines
  • fundamental of chemical engineering reactions & thermo dynamics
  • fundamental of electronics circuits
  • fundamental of mechanical engineering
  • generation and transmission of electrical power
  • glass-ii
  • high performance & green plastics
  • history of architecture - ii
  • history of architecture -i
  • history of architecture(indian)
  • human resource management
  • hydraulic and pneumatic
  • hydraulic and pneumatic devices
  • hydraulics
  • industrial management
  • industrial stoichiometry
  • irrigation engineering
  • manufacturing engineering-1
  • manufacturing engineering-i
  • manufacturing engineering-ii
  • manufacturing process & material technology
  • mass transfer - i
  • mass transfer-i
  • material science and metallurgy
  • material technology
  • mathematics - i
  • mechanical drafting
  • mechanical operation (ceo- i)
  • mechanical operation (ceo-i)
  • mechanics of structure-ii
  • mechanics of structures - i
  • metrology & instrumentation
  • microcontroller
  • microprocessor & assembly language programming
  • mine surveying-ii
  • non conventional energy sources
  • operating system
  • organic chemistry
  • petroleum refining & petro chemical technology
  • physical analytical & inorganic chemistry
  • plant maintenance & safety
  • polymer chemistry - 1
  • polymer chemistry - ii
  • principles of chemical engineering
  • process equipment design
  • process heat transfer
  • process technology
  • processing of thermoset
  • programmable logic controller
  • programming in c
  • programming in c++
  • pulp and paper technology
  • quantity survey & costing
  • refractory
  • relational database management system
  • robotics & automated material handling
  • ship building & ship recycling
  • software engineering
  • soil engineering
  • strength of materials
  • structure - i
  • structure-i
  • surveying
  • surveying - i
  • surveying-ii
  • system analysis design
  • technical drawing- i
  • technology of technical textiles
  • television engineering
  • theory of machine
  • thermodynamics
  • thermodynamics & hydraulics
  • transportation engineering
  • under ground mining of coal
  • utilities and instrumentation in chemical plant
  • vehicle dynamics
  • visual basic
  • water resources management
  • white ware
  • yarn manufacturing technology-iii