0% found this document useful (0 votes)
12 views3 pages

Wa0005

The document is an exam paper for 12th class Computer Science students at Government Degree College (Boys), Rangpur, Muzaffargarh, dated November 2018. It includes objective questions with multiple-choice answers and subjective questions requiring short answers on various topics related to the C programming language. The exam is structured to assess students' understanding of programming concepts, syntax, and error handling in C.

Uploaded by

boxavi6713
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)
12 views3 pages

Wa0005

The document is an exam paper for 12th class Computer Science students at Government Degree College (Boys), Rangpur, Muzaffargarh, dated November 2018. It includes objective questions with multiple-choice answers and subjective questions requiring short answers on various topics related to the C programming language. The exam is structured to assess students' understanding of programming concepts, syntax, and error handling in C.

Uploaded by

boxavi6713
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/ 3

Government Degree College (Boys), Rangpur, Muzaffargarh

Mid Term Exams, November 2018


12th Class

COMPUTER SCIENCE TIME: 20 MINUTES


Roll Number: ___________________ MARKS: 15
OBJECTIVE
NOTE: You have four choices for each objective type question as A, B, C and D. The choice which you
think is correct, fill that circle in front of that question number. Use marker or pen to fill the
circles. Cutting or filling two or more circles will result in zero mark in that question.
Question No.1
1 C is a ________ Language
a)High Level b)Machine c)Low Level d)Assembly
2 Short key command to compile C program in Turbo C++ is
a)Alt+F9 b)F2 c)Alt+F2 d)None
3 C was deigned to write programs for _______ Operating system in year _______
a)Linux,1972 b)Windows,1969 c)Unix,1972 d)Solaris,1970
4 Executable file is the output of
a)Linker b)Loader c)Coder d)Compiler
5 Body of a function is enclosed in
a)Delimiter b)Terminator c)Parenthesis d)None
6 Output of a program is not correct every time we run the program it might be
a)Syntax Error b)Logical Error c)compiling Error d)Runtime Error
7 Language in which all variables must be declared before using these variables is known as
a)Structured b)Unstructured c)Case Sensitive d)Strongly Typed
8 When memory is assigned to a variable this step is called
a)Declaring b)Initializing c)Naming d)None
9 Int takes ____ float takes _______ and char takes ______ bytes in memory
a)2,4,1 b)2,2,1 c)1,4,2 d)None
10 sum = 6+(10-4)/3; This statement will evaluate in
a)sum = 3 b) sum = 6 c) sum = 8 d) sum = 12
11 Using multi line comment the ending comment symbols will be
a) */ b)*\ c)/* d)\*
12 %4.2f is
a)Format Specifier b)Field-Width Specifier c)Escape Sequence d)Both A B
13 Format string to Print the string as: “Rangpur”
a)printf(“Rangpur”) b)printf(“\”Rangpur”) c)printf(“Rangpur\””) d)printf(“\”Rangpur\””)
14 Scanf function is taken from ______ library
a)conio b)stdio c)math d)none
15 Which function not echo back the character we type in the program
a)scanf() b)printf() c)getch() d)getche()

COMPUTER SCIENCE TIME: 2.10 MINUTES

Date: 26 November 2018


Government Degree College (Boys), Rangpur, Muzaffargarh
Mid Term Exams, November 2018
12th Class

Roll Number: ___________________ MARKS: 60


SUBJECTIVE
Question No.2 Write short answers of any six (6) questions of the following 6x2 = 12
1 What is low level language? What are types of low level programming languages?
2 What is high level programming language? List any of two characteristics of high level
languages?
3 What is IDE? List the functionalities provided by an IDE?
4 What is basic structure of C program? Give an example?
5 What is preprocessor directive? Explain its types with syntax?
6 What are program errors? List their types?
7 What is difference between structured and unstructured programming?
8 Explain the Strongly typed and case sensitive features of C language?
9 What is different between terminator and delimiter? List their symbols in C language?

Question No.3 Write short answers of any six (6) questions of the following 6x2 = 12
1 What is difference between standard identifiers and keywords?
2 What are signals? Differentiate analog and digital signals?
3 Why initialization of a variable is important?
4 What is the difference between Declaring and Defining a variable?
5 What is float data type in C? Enlist the sizes of different float data types?
6 What is the different between signed and unsigned keywords?
7 What is difference between "==" and "=" ? Explain with example?
8 What is operator precedence means? Which operators have highest and lowest
precedence in a C expression?
9 What is expression?

Question No.4 Write short answers of any six (6) questions of the following 6x2 = 12
1 What is printf function? Write its syntax?
2 What is format string?
3 What is format specifier? Explain with a program example?
4 What is feild width specifer? How it works with format specifier?
5 What is escape sequence? Give four examples of escape sequences?
6 What is difference between getch and getche functions? Write their syntax?
7 What is difference between scanf and character input functions? Write syntax of scanf
function?
8 Write the Output of this statement: printf(“%6.3f \t%4d”,66.5645,45634);
9 Why we use & symbol in C program?

Page Turn Over

Date: 26 November 2018


Government Degree College (Boys), Rangpur, Muzaffargarh
Mid Term Exams, November 2018
12th Class

Note: Question # 8 is compulsory. Attempt any two questions from 5, 6, 7 and 9 8x3 = 24

5 Explain different steps involved to write a C program? Draw diagram of C program


execution cycle?
6 Write a C program to show this output?

------------------------------------------------------------------------------------
Subject Score Total Marks Percentage
------------------------------------------------------------------------------------
Computer 80 100 80
English 65 100 65
Mathematics 74 150 49.3
Physics 55 100 55

7 Explain different types of operators with their symbols provided by C language?


8 This program has at least one mistake in each line (can be more than one in a line).
Rewrite the Following program after debugging? What will be the output of this
program if there is no error?

#include<stdioh>
#incluode<conio.h>
{ voide main()
clearscr();
int var2,var1,var
float float2,float1,float;
var1,float1 = 12,3.14;
3 * var1 = var2;
printf("%f %d" var2,float1);
}

9 Write a C program to calculate percentage of marks of a student in computer exam. The


program should take score of students and total marks of computer exam and it should
display the percentage to user
The formula to calculate percentage is
Percentage = (score of student / total marks ) x 100

END

Date: 26 November 2018

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy