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

Final Exam 2081 C Programming

The document is a final examination paper for Computer Engineering students at Shree Mahunyal Secondary School, focusing on programming in C. It includes multiple-choice questions and programming tasks related to C language concepts such as variable types, control statements, and array operations. Candidates are required to answer questions in their own words within a specified time limit and marks allocation.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
48 views2 pages

Final Exam 2081 C Programming

The document is a final examination paper for Computer Engineering students at Shree Mahunyal Secondary School, focusing on programming in C. It includes multiple-choice questions and programming tasks related to C language concepts such as variable types, control statements, and array operations. Candidates are required to answer questions in their own words within a specified time limit and marks allocation.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Shree Mahunyal Secondary }

School A) 1, 2,3,4 B) 1, 2,3,4,0 C) 0,1, 2,3,4


D) 1, 2,3,4,5
Bardagoriya Ga.Pa Baskoti, Kailali
Final Examination 2081
Program: Computer Engineering (9)
FM:-50
Subject: Programming in c Time: 2:00 hr
Candidates are required to give their answers in their own
words as far as practicable. The figures in the margin
indicate full marks. 5) What is #include <stdio.h>?
Group A a) Preprocessor directive
1) Who is the father of C language? b) Inclusion directive
a) Steve Jobs c) File inclusion directive
b) James Gosling d) None of the mentioned
c) Dennis Ritchie 6) Which of the following is not a variable type in c
d) Rasmus Lerdorf programming?
2) What is the result of logical or relational a) Float
b) Int
expression in C?
c) While loop
a) True or False d) All of the above
b) 0 or 1
c) 0 if an expression is false and any positive 7) What is an example of iteration in C?
number if an expression is true a) for
d) None of the mentioned b) while
3) Which of the following is not a valid C variable c) do-while
d) all of the mentioned
name? a) String name;
b) float rate; 8) Which operator is used as logical And operator?
c) int emp_id
d) int $salary a) ||
4) What will the output after execution of the b) >>
following statements? c) <=
void main() d) &&
{ int i ; 9) An array elements are always stored in …..Memory
For (i=0 ;i<5;i++) location?
printf ("%d\t", i);
a) Random 1) What is array? Explain types of array & WAP to
b) Sequential 0r continuous enter 10 numbers into array and sort those
c) Floating types ascending orders.
d) None of the above 2) Define control statement? List its types & WAP to
enter three numbers and find largest number
among them.
3) Different between while and do while loop? WAP
to enter 4 digit number and print reverse order.

:::::::::::::::::::: Best of
Luck:::::::::::::::::::::::::::::::::::::::::
Group B
Attempt (any five) question (5x5=
25)
1) What is algorithm & flowchart? Write an
algorithm & develop flowchart to enter any
number and check number is even or odd.
2) What is looping? Write a program to print n th
terms of natural number using for loop.
3) Define c-Token? List c-token and explain any
three.
4) Define data types? Explain Fundamental data
types used in c program.
5) Define two dimensional (2D) arrays? WAP to
enter 3x3 two matrixes and find matrix
addition.
6) Define nested loop? WAP to Enter value of
dollar and convert into Nepali currency ( 1
dollar=Rs 138).

Group C
Attempt (any two) questions
(2x8=16)

You might also like