C Programming Model Question for BICT First Semester

Tech4nep teams are present C Programming Model Question for BICT First Semester.

C Programming Model Question for BICT First Semester(Objective Question)

Group A (10*1=10)

 Tick (ü) the correct option

1. How would you round off a value from 1.66 to 2.0?

A. Ceil(1.66)

B. Floor(1.66)

C. Roundup(1.66)

D. Roundto(1.66)

2. By default a real number is treated as

A. Float

B. Double

C. Long double

D. Far double

3. Which of the following correctly shows the hierarchy of arithmetic operation in C

  1. / + * –
  2. * – / +
  3. + – / *
  4. / * + –

4. Which of the following is the correct usage of conditional operators used in C?

  1. a>b ? c=30 : c=40;
  2. a>b ? c=30;
  3. max=a>b? >c?a:c:b>c?b:c
  4. return (a>b)?(a:b)

5. C programs are converted into machine language with the help of

  1. An editor
  2. A compiler
  3. An operating system
  4. None of the above

6. Who is father of C Language?

  1. Bjarne Stroustrup
  2. James A. Gosling
  3. Dennis Ritchie
  4. Dr. E.F. Codd

7. What is the output of this C code?

void main()
    {
        m();
        printf(“%d”, x);
    }
    int x;
    void m()

{
        x = 4;
    }

  1. 4
  2. Compile time error
  3. 0
  4. Undefined

8. Which among the following is NOT a logical or relational operator?

  1. !=
  2. ==
  3. ||
  4. =

9. Array with last element ‘n’ will always have array size equal to…….

  1. n
  2. n+n
  3. n-1
  4. n+1

10. In order to access any element of an array if the position of element is known, Time complexity will be equal to _________.

  1. O(n2)
  2. O(n)
  3. O(1)
  4. O (n-1)

C Programming Model Question for BICT First Semester(Subjective Question)

Group B (6 x 5 = 30)

1. What is an Operator? List out the different types of operator used in C programming and explain any two of them with proper example.

2. Write a program to calculate the greatest number among three numbers with a flowchart and algorithm.

3. What is user defined function? Write a program to evaluate the following functions to 0.0001% accuracy

Sinx = x – x3/3! + x5/5!  – x7/7! +…………………

4. Define the term recursion? Write a program to calculate the factorial of a number by using recursive function.

5. Differentiate between for loop and while loop with suitable example.

6. Write a program to calculate whether the given number is Armstrong or not.

C Programming Model Question Part-I Click Here

Leave a Reply

Your email address will not be published. Required fields are marked *

error: Content is protected !!