[go: up one dir, main page]

0% found this document useful (0 votes)
26 views2 pages

Applied Science CS SUMMER 2022

Uploaded by

niyomodi2001
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views2 pages

Applied Science CS SUMMER 2022

Uploaded by

niyomodi2001
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Seat No.: ________ Enrolment No.

___________

GUJARAT TECHNOLOGICAL UNIVERSITY


M.Sc Integrated – SEMESTER – I - EXAMINATION – SUMMER 2022

Subject Code: 1310303 Date: 30/07/2022


Subject Name: Fundamentals of Computer and Basics of Programming
Time: 02:30 PM TO 05:00 PM Total Marks: 70
Instructions:
1. Attempt all questions.
2. Make suitable assumptions wherever necessary.
3. Figures to the right indicate full marks.

Marks

Q.1 (a) Define computer. Explain the characteristics briefly? 03


(b) Describe briefly about Secondary storage devices? 04
(c) Difference between 07
(i) Procedure Oriented Language Vs Object-Oriented Language
(ii) Compiler and Interpreter

Q.2 (a) Explain flowchart in detail? 03


(b) Explain in detail about ‘C’ declarations and variables. 04
(c) Write an algorithm to compute the factorial of a number n. 07
OR
(c) Write an algorithm and program to print Hello world five times using any 07
loop.

Q.3 (a) What is the difference between ++a and a++? 03


(b) What is the difference between if and while statement? 04
(c) Explain in detail about the constants, expressions and statements in 07
‘C’.
OR
Q.3 (a) What is a two-dimensional array? 03
(b) What is the difference between while loop and do…while loop? 04
(c) What are control statements? Explain ‘Continue’, ‘Goto’ and ‘Break’ 07
statements.

Q.4 (a) What is the difference between global and local variable? 03
(b) Write about ‘strlen’ and ‘strcat’ functions. On which data type do these 04
functions work on?
(c) Write a program to do perform arithmetic operators on two numbers 07
using switch case statement.
OR
Q.4 (a) What are the Bitwise operators available in ‘C’? 03
(b) What are functions? Explain the types of functions in detail with an 04
example program for each type.
(c) Write a program to calculate sum (), average (), percentage () of five 07
subject marks entered by user.

Page 1 of 2
Q.5 (a) What is a pointer? Explain in brief. 03
(b) Define Union. Explain Union in detail. 04
(c) Write a program to calculate area of triangle with using user defined 07
function.
OR
Q.5 (a) Give definitions of class, object, and inheritance. 03
(b) Declare the Structure with an example? 04
(c) Write a program to read data from a file and write a data into a file. 07

***********

Page 2 of 2

You might also like