Exam Details
Subject | programming in c | |
Paper | ||
Exam / Course | b.voc | |
Department | ||
Organization | Gujarat Technological University | |
Position | ||
Exam Date | January, 2019 | |
City, State | gujarat, ahmedabad |
Question Paper
Seat No.: Enrolment
GUJARAT TECHNOLOGICAL UNIVERSITY
B.VOC. -SEMESTER 1(NEW SYLLABUS) EXAMINATION- WINTER 2018
Subject Code: 1110203 Date: 18-01-2019
Subject Name: Programming in C
Time: 10:30 AM to 12:30 PM Total Marks: 50
Instructions:
1. Attempt all questions.
2. Make suitable assumptions wherever necessary.
3. Figures to the right indicate full marks.
Marks
Q.1
Answer the following:
Why is "C" called a middle level language?
What is data type?
List the various conditional statements.
What do you understand by
Name any three header files other than stdio.h and conio.h.
05
Give the basic C structure of a C program. Support your answer with a small sample code.
05
Q.2
Write a brief account on the various operators used in C. Also explain all the relational operators in details.
05
What are the basic data types in C. Support your answer examples.
05
OR
What do you mean by conditional statements? Explain any one of them with proper example.
05
Q.3
Discuss the need of arrays? Write a C program to print the third element in the array.
05
What are iterative constructs? Differentiate between while and do-while iterative construct.
05
OR
Q.3
Write a C code to find the sum of all the numbers in a given array. Also find the average of the numbers entered.
05
Write a brief account on Strings. What is need of terminating the string with a null character?
05
Q.4
Write a brief account on storage classes in C.
05
Discuss the need of functions? Write a function in C that accepts two numbers and returns the sum of the two numbers entered.
05
OR
Q.4
Discuss the need of pointers. Explain dynamic memory allocation
05
functions malloc and calloc with proper syntax and example.
Explain recursion. Write a C program to find factorial of a number using recursion.
05
Q.5
Create a structure "Student" that has id as integer, marks as integer and name as string. Write a C code to accept and print the details of three students through the "Student" structure.
05
Discuss the various modes for the fopen() function.
05
OR
Q.5
What is the need of creating structures? Give the difference between arrays and structures.
05
Devise a C program that checks whether a given number is odd or even. If the number is odd, write it to OddNo.txt file and if the number is even, write it to EvenNo.txt file.
05
GUJARAT TECHNOLOGICAL UNIVERSITY
B.VOC. -SEMESTER 1(NEW SYLLABUS) EXAMINATION- WINTER 2018
Subject Code: 1110203 Date: 18-01-2019
Subject Name: Programming in C
Time: 10:30 AM to 12:30 PM Total Marks: 50
Instructions:
1. Attempt all questions.
2. Make suitable assumptions wherever necessary.
3. Figures to the right indicate full marks.
Marks
Q.1
Answer the following:
Why is "C" called a middle level language?
What is data type?
List the various conditional statements.
What do you understand by
Name any three header files other than stdio.h and conio.h.
05
Give the basic C structure of a C program. Support your answer with a small sample code.
05
Q.2
Write a brief account on the various operators used in C. Also explain all the relational operators in details.
05
What are the basic data types in C. Support your answer examples.
05
OR
What do you mean by conditional statements? Explain any one of them with proper example.
05
Q.3
Discuss the need of arrays? Write a C program to print the third element in the array.
05
What are iterative constructs? Differentiate between while and do-while iterative construct.
05
OR
Q.3
Write a C code to find the sum of all the numbers in a given array. Also find the average of the numbers entered.
05
Write a brief account on Strings. What is need of terminating the string with a null character?
05
Q.4
Write a brief account on storage classes in C.
05
Discuss the need of functions? Write a function in C that accepts two numbers and returns the sum of the two numbers entered.
05
OR
Q.4
Discuss the need of pointers. Explain dynamic memory allocation
05
functions malloc and calloc with proper syntax and example.
Explain recursion. Write a C program to find factorial of a number using recursion.
05
Q.5
Create a structure "Student" that has id as integer, marks as integer and name as string. Write a C code to accept and print the details of three students through the "Student" structure.
05
Discuss the various modes for the fopen() function.
05
OR
Q.5
What is the need of creating structures? Give the difference between arrays and structures.
05
Devise a C program that checks whether a given number is odd or even. If the number is odd, write it to OddNo.txt file and if the number is even, write it to EvenNo.txt file.
05
Other Question Papers
Subjects
- automobile electrical equipment
- basics of air conditioning
- basics of refrigeration (b.o.r)
- engineering materials
- general mechanical engineering - ii
- it foundation and programming concepts
- machine tool technology
- metrology and measuring instruments
- modern electric & hybrid vehicles
- motor vehicle technology ii
- operating system
- production technology
- programming in c
- soldering & de-soldering of components & emergency action ii
- two and three wheeler
- web designing