Вы находитесь на странице: 1из 4

UNIVERSITY OF KASHMIR

ASSIGNMENT
Multiple choice type Questions

Asmat Ara

TEACHER INCHARGE:

Dr. Javeed Iqbal Reshi


UNIT 1 (MCQ)
Q1: Last stage in problem solving is to:
(a) Design a solution (b) Define a problem
(c ) Practising the solution (d) Organizing the data
Q2: Rectangle shaped symbol in flow-chart is used to show:
(a) Carried operations (b) Errors
(c ) Decisions (d)Defined variables
Q3: Set of Diagrams and notes that accompany program implementation are known as:
(a) Programme Execution (b) Program Planning
(c ) Program Documentation (d) Program Existance
Q4: Ideal way to show a top down algorithm is to draw a:
(a) Sequence Diagram (b) Selection Diagram
(c ) Reference Diagram (d) Structure Diagram
Q5: Series of steps that are followed to solve a problem is classified as:
(a) Flowchart (b) Structure Diagram
(c ) Algorithm (d) Solving method
Q6: Process of dividing the program parts into more detailed part is called:
(a) Step-wise refinement (b) Top-Down refinement
(c ) Binary refinement (d)Split refinement
Q7: The range of int data type is:
(a) -32768 to +32767 (b)32768 to -32767
(c ) 0 to 65535 (d) None of Above
Q8: By default a real number is treated as:
(a) Float (b ) Double
(c ) Long Double (d) Integer
Q9: Which of the following is not a valid relational operator:
(a) * (b) ==
(c ) >= (d) <=
Q10:Which of the following cannot be used as identifier:
(a) Letters (b) Digits
(c ) Underscores (d) Spaces
UNIT 2
Q1: In Switch statement, each instance value must be:
(a) Constant (b) Vaiable
(c ) Special symbol (d ) none of the above

Q2: what will be the output of the following


code? #include<stdio.h>
int main()
{
int x=10;
{
int x=0;
printf(“%d”,x);
}
return 0:
}

(a)10 (b) Compilation Error


(c ) 0 (d ) none of the above

Q3: what will be the output of the following


code? #include<stdio.h>
#include<conio.h>
int main()
{
int a= printf(“University”)
return 0:
}

(a) Compilation Error (b) University


(c ) University10 (d ) 0

Q4: What will be the output of the following


code? #include<stdio.h>
#include<conio.h>
int main()
{
Int a =0;
While (a++)
{
printf(“University of kashmir”);
}
}

(a)0 times (b) 1 times


(c ) infinite times (d ) none of the above
Q5: Which of the following is not necessary fo every 'C' program?
(a)Header file (b) Preprocessor directive
(c ) Main function (d ) The use of Keyword
Q6: If 'a' is an integer variable then a=5/2 will return:
(a) 2.5 (b)2
(c )2.000000 (d )2.500000
Q7: Break keyword is used to:
(a)Halt the execution of program (b) Restart execution of program
(c )Exit from loop or switch statement (d ) none of the above
Q8: Which of the following shows the correct hierarchy of arithmetic operations in 'C'?
(a) / + * - (b) * - / +
(c )+ - / * e (d ) * / + -
Q9: Function declaration statement identifies a function with its?
(a) Name (b) Arguments
(c ) Data type of return value (d ) All of the Above
Q10: Which return type cannot return any value o the calling function?
(a) int (b) float
(c ) double (d) void

Вам также может понравиться