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

First Terminal Examination 2080

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)
20 views2 pages

First Terminal Examination 2080

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

Shree Mahunyal Secondary School

Bardagoriya Ga.Pa Baskoti, Kailali


First terminal 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
5) Which translater is used to translate whole program once time.
practicable. The figures in the margin indicate full marks. A. Interpreter
Group A B. Compiler
1) Who is the father of C language? C. Assembler
A. Steve Jobs D. Both A &B
B. James Gosling
C. Dennis Ritchie
D. Rasmus Lerdorf 6) Which of the following are valid decision-making statements in C?
A. if
2) Which of the following functions already declared in the "header B. switch
file"? C. nested if
A. Built-in function D. else if
B. C function
C. None of the these 7) Which of these is an exit-controlled loop?
D. User-define function
A. for
3) What will the output after execution of the following statements?
B. if
void main() C. do...while
{ D. while
int i ;
For (i=4 ;i<=5;i++) 8) C language is a ___. ………..called .
printf ("%d\t", i);
} A. Procedural oriented programming language
B. General purpose programming language
A) 2,5 B) 3,6 C) 4,5 D) 2,6 C. Structured programming
D. All of the above
4) Which is the conditional operator?
9) What is #include <stdio.h>
A. Preprocessor directive
A. && B. Inclusion directive
B. ": ?" C. File inclusion directive
C. == D. None of the mentioned
D. ++/--
Group B
Attempt (any five) question (5x5= 25)

1) Define programming language? Different between high level and


low level programming language.
2) Define C -Token? List of C -Token and Explain Keyword, variable,
identifier and constant.
3) What are fundamental data types? Explain fundamental data
types used in c program.
4) Define if else statement? Write a program to enter any number
and check number is even or odd.
5) What is operator? Explain types of any four operator used in c
6) What is syntax error? Write a program to enter value of Nepali
currency and convert into dollar ( 1 dollar =Rs 133)

Group C
Attempt (any two) questions (2x8=16)
1) What is looping? List types of looping? Write a program to print
natural number series up to n terms.
2) Define Algorithms and Flowchart? Write an algorithms and
design flowchart and programming code to enter value of p, t, r
and calculate simple interest.

:::::::::::::::::::: Best of Luck:::::::::::::::::::::::::::::::::::::::::

You might also like