0
785views
UNIVERSITY INSTITUTE OF ENGINEERING & TECHNOLOGY Theory Examination summer 2021 (B.Tech. Computer engineering) Subject: Fundamentals of Computer Programming.

Question 1: Attempt any four parts. [4×3.5=14]

  • a) Explain characteristic of an algorithm.

    b) Explain Application software.

    c) Define Digital computer.

    d) What is Linker?

    e) Define identifier.

Question 2: Attempt all parts. [2×7=14]

  • a) Explain the String handling function in detail.

    b) What is Pointer? Explain its advantages and disadvantages of it.

Question 3: Attempt all parts. [2×7=14]

  • a) Explain the math function in detail.

    b) Whata is function? Write a C program to calculthe ate factorial of a given number.

Question 4: Attempt all parts. [2×7=14]

  • a) Determine the hierarchy of operations and evaluate the following expression: on = inkact/2+3/2act+2+tig;

    ( ink = 4, act = 1, tig = 3.2, assume on to be an int)

    b) What are the differences betwtheen malloc () and calloc () function?

Question 5: Attempt all parts. [2×7=14]

  • a) What is purpose and use of Structure in C.

    b) What are the differences between while and do while loop?

Question 6: Attempt all parts. [2×7=14]

  • a) Explain passing arguments by value with suitable example.

    b) Explain the followings- (1) C Preprocessor (2) Macros

Question 7: Attempt all parts. [2×7=14]

  • a) Convert following number into:

    • (1) (10101.0101)2=(....)10

      (2) (93)10= (....)8

    b) Write a C program to find 37 is prime number or not.

1 Answer
1
2views

Full paper solution:


Question 1:


a) Explain characteristic of an algorithm.

An algorithm is a well defined produce that allows a computer to solve a problem.

Characteristics of an algorithm are:

(i) unambiguous:

Algorithm should be clear and unambiguous. Each of its step should be clear.

(ii) input:

An algorithm …

Create a free account to keep reading this post.

and 2 others joined a min ago.

Please log in to add an answer.