FirstRanker Logo

FirstRanker.com - FirstRanker's Choice is a hub of Question Papers & Study Materials for B-Tech, B.E, M-Tech, MCA, M.Sc, MBBS, BDS, MBA, B.Sc, Degree, B.Sc Nursing, B-Pharmacy, D-Pharmacy, MD, Medical, Dental, Engineering students. All services of FirstRanker.com are FREE

📱

Get the MBBS Question Bank Android App

Access previous years' papers, solved question papers, notes, and more on the go!

Install From Play Store

Download GTU BE/B.Tech 2019 Winter 1st And 2nd Sem New And Spfu 2110003 Computer Programming And Utilization Question Paper

Download GTU (Gujarat Technological University) BE/BTech (Bachelor of Engineering / Bachelor of Technology) 2019 Winter 1st And 2nd Sem New And Spfu 2110003 Computer Programming And Utilization Previous Question Paper

This post was last modified on 20 February 2020

This download link is referred from the post: GTU BE/B.Tech 2019 Winter Question Papers || Gujarat Technological University


EnrolmentNo,

GUJARAT TECHNOLOGICAL UNIVERSITY

E - SEMESTER- I & II (NEW) EXAMINATION - WINTER 2019

--- Content provided by FirstRanker.com ---

Subject Code: 2110003 Date: 07/01/2020

Subject Name: Computer Programming And Utilization

Time: 10:30 AM TO 01:00 PM Total Marks: 70

Instructions:

  1. Question No. 1 is compulsory. Attempt any four out of remaining Six questions.
  2. --- Content provided by FirstRanker.com ---

  3. Make suitable assumptions wherever necessary.
  4. Figures to the right indicate full marks.

Q.1 Objective Question (MCQ)

(a) 07

--- Content provided by FirstRanker.com ---

  1. In which of the following languages, the instructions are written in the form of 0s and 1s?
    1. Programming language
    2. Machine language
    3. Assemble language
    4. High-level language
  2. --- Content provided by FirstRanker.com ---

  3. The statements between a function body are indicated by:
    1. {}
    2. ()
    3. \n
    4. /**/
  4. --- Content provided by FirstRanker.com ---

  5. Which is a legal ‘C’ expression?
    1. a=[b+c];
    2. a={(b+c)};
    3. a=(b+c);
    4. a= {b*c};
  6. --- Content provided by FirstRanker.com ---

  7. What will the output of following C code be?

    # include <stdio.h>
    int main()
    { int x=1,y=1,z; z=x++ +y; printf (“%d, %d”, x, y);
    }

    --- Content provided by FirstRanker.com ---

    1. x=2, y=2
    2. x=2, y=1
    3. x=1, y=1
    4. x=1, y=2
  8. --- Content provided by FirstRanker.com ---

  9. How many operands does the ‘conditional operator (?:) takes?
    1. Four
    2. Two
    3. One
    4. Three
  10. --- Content provided by FirstRanker.com ---

  11. In which of the following the loop is executed at least once?
    1. while
    2. for
    3. do — while
    4. if
  12. --- Content provided by FirstRanker.com ---

  13. int x[5]= {3,4,5}
    What will be the value of x[4]?
    1. 0
    2. 4
    3. 5
    4. 3
  14. --- Content provided by FirstRanker.com ---

(b) 07

  1. Which library function is used to compare two strings?
    1. strstr ()
    2. strchr ()
    3. strcmp ()
    4. strlen ()
    5. --- Content provided by FirstRanker.com ---

  2. A function declaration consists of four parts. Which of them is wrongly mentioned?
    1. Terminating comma
    2. Function type
    3. Function name
    4. Parameter list
    5. --- Content provided by FirstRanker.com ---

  3. Which of following operators is used to access the value of the variable using the pointer?
    1. *
    2. ->
    3. %
    4. &
    5. --- Content provided by FirstRanker.com ---

  4. Which of the following determines the size of a union?
    1. Biggest member of the union
    2. First member of union
    3. Sum of the sizes of all members
  5. --- Content provided by FirstRanker.com ---

  6. Which of the following functions is used to release allocated memory which is no longer required?
    1. dealloc ()
    2. dropmem ()
    3. free ()
    4. release ()
  7. --- Content provided by FirstRanker.com ---

  8. Which of the following functions allocates request size of bytes and returns a pointer to the first byte of allocated space?
    1. calloc
    2. free
    3. realloc
    4. malloc
  9. --- Content provided by FirstRanker.com ---

  10. Which of the following functions reads an integer from a file?
    1. fseek ()
    2. putw ()
    3. fscanf ()
    4. getw ()
  11. --- Content provided by FirstRanker.com ---

Q.2 (a) Write an algorithm to determine whether the given year is a leap year or not. 03

(b) What is a flow chart? How is it different from an algorithm? 04

(c) What is various types of operator available in C. 07

Q.3 (a) State the difference between entry control loop and exit control loop. 03

(b) What is difference between keywords and identifiers? Explain rules for naming an identifier. 04

--- Content provided by FirstRanker.com ---

(c) Write a program that reads a value n and generates the following pattern: 07


1
12
123

--- Content provided by FirstRanker.com ---

1234
12345
123456
1234567
12345678

--- Content provided by FirstRanker.com ---

123456789

Q.4 (a) Distinguish between the following pairs: 03

  1. getchar and scanf functions
  2. %s and %c specifications for reading.
  3. %s and %[ ] specifications for reading.
  4. --- Content provided by FirstRanker.com ---

(b) Explain putchar() and puts() functions with suitable example. 04

(c) Write a program to copy one string into another and count the number of characters copied. 07

Q.5 (a) Compare for loop and while loop with illustrations. 03

(b) Describe following string functions in C — Language. 04

  1. strcpy( )
  2. --- Content provided by FirstRanker.com ---

  3. strcat( )
  4. strlen( )
  5. strcmp ()

(c) What is recursion? Write C program to find factorial (N) using recursive Function? 07

Q.6 (a) State difference between call by reference and call by value. 03

--- Content provided by FirstRanker.com ---

(b) What is pointer? Explain Array of pointer with example. 04

(c) Write a function which accepts a string and returns the length of the string. 07

Q.7 (a) State difference between Union and Structure. 03

(b) Explain getw() and putw() function with example. 04

(c) What is file management? List the different file-management functions. 07

--- Content provided by FirstRanker.com ---

Explain the various file modes.

FirstRanker.com



--- Content provided by FirstRanker.com ---

This download link is referred from the post: GTU BE/B.Tech 2019 Winter Question Papers || Gujarat Technological University