GTU First Year Engineering (Semester 1)
Computer Programming & Utilization
December 2014
Total marks: --
Total time: --
INSTRUCTIONS
(1) Assume appropriate data and state your reasons
(2) Marks are given to the right of every question
(3) Draw neat diagrams wherever necessary


Solve any one question from Q1 (a) & Q1 (b)
1 (a) (i) Software required to run the hardware is known as
(a) Task Manager
(b) Task Bar
(c) Program Manager
(d) Device Driver
1 M
1 (a) (ii) Which the following is application software?
(a) Compiler
(b) Power Point
(c) Debugger
(d) None of the above
1 M
1 (a) (iii) Which of the programming language is said to be machine
independent language?
(a) High Level Language
(b) Machine Language
(c) Assembly Language
(d) All the Above
1 M
1 (a) (iv) What will be a meaning of 1KB of memory
(a) 1 Kit Bit
(b) 1 Kilo Byte
(c)1 Kernel Boot
(d) 1 Key Block
1 M
1 (a) (v) Which of the following is smallest Network?
(a) MAN
(b) LAN
(c) WAN
1 M
1 (a) (vi) FTP stands for
(a) File Transport Protocol
(b) File Transfer Protocol
(c) Folder Transfer Protocol
1 M
1 (a) (vii) When a key is pressed on keyboard, which standard is used for converting the keystroke into the corresponding bits
(a) ANSI
(b) ASCII
(c) EBCDIC
(d) ISO
1 M
1 (b) (i) Which one is input device?
A) Monitor
B) CPU
C) Keyboard
D) Printer
1 M
1 (b) (ii) Which part of CPU perform calculations and make decision
A) Alternate Logic Unit
B) Arithmetic Logic Unit
C) Arithmetic Local Unit
D) Alternate Local Unit
1 M
1 (b) (iii) RAM stands for
A) Random Access Memory
B) Random Automatic Memory
C) Read Access Memory
D) Read Automatic Memory
1 M
1 (b) (iv) The memory capacity of a computer is represented in
A ) Kilobits
B) Memory chips
C) Kilobytes
D) None of the above
1 M
1 (b) (v) HTML is used to design
A) Webpage
B) Multimedia Objects
C) Website
D) Tables and frames.
1 M
1 (b) (vi) What type of memory is volatile?
A) Cache
B) ROM
C) RAM
D) Hard Drive
1 M
1 (b) (vii) With regards to Email Addresses:
A) They must always contain an @ symbol
B) They are case sensitive
C) They can never contain space
D) All of above
1 M
1 (c) (i) Structure can contain elements of the same data type
(a) true
(b) false
1 M
1 (c) (ii) Which of the following operator is used to select a member of a structure variable
(a) .(dot)
(b) ,(comma)
(c) : (colon)
(d) ;(semicolon)
1 M
1 (c) (iii) C is a ___ language
(a) High Level
(b) Low Level
(c) Middle Level
(d) Machine Level
1 M
1 (c) (iv) A declaration float a,b; occupies ______of memory?
(a) 1 bytes
(b) 4bytes
(c) 8byte
(d) 16 bytes
1 M
1 (c) (v) Which function reallocates memory?
(a) realloc
(b) calloc
(c) malloc
(d) None of these
1 M
1 (c) (vi) Which of the following is used as a string termination character?
(a) 0
(b) \0
(c) /0
(d) None of these
1 M
1 (c) (vii) File manipulation functions in C are available in which header file?
(a) streams.h
(b) stdio.h
(c) stdlib.h
(d) files.h
1 M

2 (a) Explain the different data types of C language.
3 M
2 (b) Recall the definition of dynamic memory allocation? Differentiate between malloc and calloc?
4 M
2 (c) What is string? Write a program to concatenate two strings without using built in function.
7 M

3 (a) Compare "call by value" & "call by reference" with suitable example.
3 M
3 (b) Explain inline function with example.
4 M
3 (c) Write a program to print the following pattern
      1      
    2   2    
  3   3   3  
4   4   4   4
7 M

4 (a) What is Pointer in C? Explain its advantages.
3 M
4 (b) Write a C Program to check whether the given number is prime or not.
4 M
4 (c) Explain various categories of functions with suitable example.
7 M

5 (a) What do you understand by recursive function? Explain with small example.
3 M
5 (b) Illustrate the concept of "structure"? Explain how can we access structure members?
4 M
5 (c) Write an algorithm and draw a flowchart to print first N Fibonacci numbers.
7 M

6 (a) Distinguish between Structure and Union.
3 M
6 (b) Write a program to do swapping of two elements using function with two pointers as arguments.
4 M
6 (c) Discuss about various operators used in C language.
7 M

7 (a) Describe file management? Recall various file modes.
3 M
7 (b) Explain following string manipulation function.
strcat( ), strcpy( ) ,strcmp( ) and strlen( )
4 M
7 (c) What do you understand by looping? Explain different types of loops in C with example and compare them.
7 M



More question papers from Computer Programming & Utilization
SPONSORED ADVERTISEMENTS