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 Summer 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 Summer 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 2019 Summer Question Papers || Gujarat Technological University


FirstRanker.com Enrolment No.

BE - SEMESTER-I & II (NEW) EXAMINATION - SUMMER-2019

Subject Code: 2110003 Date: 10/06/2019

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

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. Make suitable assumptions wherever necessary.
  3. --- Content provided by FirstRanker.com ---

  4. Figures to the right indicate full marks.

Q.1

(a) Objective Question (MCQ) 07

  1. Which is output device?
    1. Barcode Reader
    2. LCD
    3. --- Content provided by FirstRanker.com ---

    4. Scanner
    5. Keypad
  2. C-Language is .
    1. Machine Dependent
    2. Partially Machine Dependent
    3. --- Content provided by FirstRanker.com ---

    4. Machine Independent
    5. None of above.
  3. Which one of following is volatile memory?
    1. SRAM
    2. EPROM
    3. --- Content provided by FirstRanker.com ---

    4. Flash
    5. Hard disk
  4. How many times following loop will be rotated?
    int a=10, b=1;
    while(a>b)

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

    { a— bt}
    1. 5
    2. 10
    3. 4
    4. 1
    5. --- Content provided by FirstRanker.com ---

  5. Which of the following is correct C statement to print variable a?
    1. printf(“a”);
    2. printf(“%d”, a);
    3. printf(“%d”);
    4. printf(“%a”);
    5. --- Content provided by FirstRanker.com ---

  6. Which one of following loop rotates infinite time?
    1. for(; ;)
    2. do { } While(1<10);
    3. while (100)
    4. only a and c
    5. --- Content provided by FirstRanker.com ---

    6. all of a, b, c
  7. Switch case statement cannot be applicable on data type.
    1. int
    2. char
    3. enumerated
    4. --- Content provided by FirstRanker.com ---

    5. float

(b) Objective Question (MCQ) 07

  1. Which one is invalid variable name?
    1. int a
    2. templ
    3. --- Content provided by FirstRanker.com ---

    4. case
    5. 1temp
  2. Which one of following statement doesn’t increment variable a?
    1. a++
    2. a+=1
    3. --- Content provided by FirstRanker.com ---

    4. ++a
    5. a=+1
  3. M=9; N=10;
    X=M&&N;

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

    Y=M&N;
    1. X=1,Y=8
    2. X=8,Y=8
    3. X=1,Y=1
    4. None of above
    5. --- Content provided by FirstRanker.com ---

  4. What is output of following program ?
    void main( )
    {
    int z=10;
    float z = 10;

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

    printf(“%d”,z);
    }
    1. 10.00
    2. Compile time error
    3. 10
    4. --- Content provided by FirstRanker.com ---

    5. Run time error
  5. The Function obtains block of memory run time.
    1. malloc()
    2. Both malloc() and calloc()
    3. calloc()
    4. --- Content provided by FirstRanker.com ---

    5. free()
  6. Which of the following is true about FILE *fp
    1. FILE is keyword in C for representing files and fp is variable of FILE type.
    2. FILE is a structure and fp is pointer to structure of FILE type.
    3. FILE is stream
    4. --- Content provided by FirstRanker.com ---

    5. FILE is buffered stream
  7. Array and Structure can contain elements of and data type respectively.
    1. same, different
    2. different, Same
    3. same, same
    4. --- Content provided by FirstRanker.com ---

    5. different , different

Q.2 (a) Define (1) Higher Level Language (2) Lower Level Language (3) Machine Level Language 03

(b) Sketch flowchart to convert seconds into hour, minute and second. 04
(Hint : 3700 seconds => 1 hr, 1 minute , 40 second)

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

(c) Describe assignment, sizeof( ) and ternary operator with example. 07

Q.3 (a) Write C program to find area and perimeter of rectangle. 03

(b) Describe Enumurated data type with example. 04

(c) Write C program to get 20 data from user. Find sum, average, maximum and minimum number. 07

Q.4 (a) Write a program to add first n numbers. Get value of n from user. 03

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

(b) Describe switch case statement with example. 04

(c) Write a C program to display given pattern 07

1
12
123

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

1234
2345

Q.5 (a) What is dynamic memory allocation? Give advantages and disadvantages of it. 05

(b) Describe break and continue statement with suitable example. 04

(c) Write a C program to do following task. 07

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

  1. Take string from user and print in upper-case
  2. Find string length without using strlen() function.

Q.6 (a) Give merits and demerits of Union over structure. 03

(b) Design structure with following elements : 04
Name of employ, basic, da, ta , deduction , net_salary

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

Give the variety of way to access individual elements of structure..

(c) Describe types of function based on arguments and return type. 07

Q.7 (a) Describe following file handling functions. 03

  1. fopen()
  2. fseek()
  3. --- Content provided by FirstRanker.com ---

  4. fgetc()

(b) Write C program to copy content of file “D:\home\avs.txt” into new text file “ftel.txt” in E drive . 04

(c) Define Pointer. How to initialize integer pointer ? Describe pointer to array with example. 07

FirstRanker.com


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


This download link is referred from the post: GTU BE 2019 Summer Question Papers || Gujarat Technological University