0% found this document useful (0 votes)
163 views1 page

2nd Year Computer 2nd Half (R)

This document contains the details of a test for a Computer Science class including the test type, name, and roll number of the student. It also contains 14 multiple choice questions testing knowledge of C language fundamentals like variables, data types, operators, functions, and I/O. The next sections include short answer questions about C language concepts and debugging. The final section asks to attempt 3 programming questions involving loops and conditional statements.

Uploaded by

sirarif113
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)
163 views1 page

2nd Year Computer 2nd Half (R)

This document contains the details of a test for a Computer Science class including the test type, name, and roll number of the student. It also contains 14 multiple choice questions testing knowledge of C language fundamentals like variables, data types, operators, functions, and I/O. The next sections include short answer questions about C language concepts and debugging. The final section asks to attempt 3 programming questions involving loops and conditional statements.

Uploaded by

sirarif113
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/ 1

Name: Computer Science- Roll#: Class: Inter Part-II

nd
Test Type # 2 half Book Board Paper Pattern - Marks=63

1. C language was developed in:


(A)
1969 (B) 1970 (C) 1971 (D) 1972
2. 14%5?
(A)
4 (B) 14 (C) 5 (D) 2
3. Variables are created in:
(A)
RAM (B) ROM (C) Hard Disk (D) USB
4. Which of the following data type offers the highest precision?
(A)
float (B) long int (C) long double (D) unsigned long int
5. int is a in C.
(A)
Special word (B) Key word (C) Cut word (D) First word
6. The number of digits after a decimal point is called:
(A)
Significance (B) Range (C) Precision (D) Scope
7. The Operators to compare operands and decide if the relation is true or false:
(A)
Arithmetic Operators (B) Logical Operators (C) Relational Operators (D) Syntax Operators
8. What does a compound condition use to join two conditions?
(A)
Relational Operator (B) Relational Result (C) Logical Result (D) Logical Operator
9. The function that is used to display output on screen is called:
(A)
Scanf (B) Pow (C) Display (D) Printf
`
10. How many variables can be used in one printf function?
(A)
One (B) Two (C) Ten (D) Many
`
11. The escape sequence for backslash is:
(A) \ (B) \b (C) \ \ (D) \t
12. The function used for input and output is stored in:
(A)
Stdio.h (B) Conio.h (C) Math.h (D) Tan.h
13. Term for conditional operator is:
(A)
ternary (B) binary (C) byte (D) iteration
14. Local Variables are also called:
(A)
Automatic variable (B) Static variable (C) Register variable (D) Run time variable
15. Float takes how many bytes in memory:
(A)
2 (B) 4 (C) 8 (D) 10
Section-II
2- Write short answers to any SIX (6) of the following questions. (6x2=12)
i. What are delimiters in C?
ii. Differentiate between overflow and underflow?
iii. Trace output: int a = 512; printf ("a = %5d", a); printf ("a = %1d", a);
iv. What are Comments?
v. Find the errors in the following piece of code. #include (stdio.h) VOID MAIN () { int a = 10; Printf("%f”,b); }
vi. What will be the output of the following code? int m = 7; int y = 3; printf (“%d” , m % y);
vii. Define getche() function with its syntax?
viii. Define local variable and Global variable?
3- Write short answers to any SIX (6) of the following question (6x2=12)
i. Define Bug and debugging?
ii. Define Function call?
iii. Trace the output in the following code: int x = 10 y = 15; x = x + +; y = + + y; printf ("%d %d", x,y);
iv. Define Format specifier with example.
v. Trace the error of the given code. include<stdio.h> main () {int i = 10; printf("%d", i);}
vi. Define infinite loop.
vii. Convert following loop code into for loop code. int i = 3; do { printf("%d\n", i); i+ = 3; } While(i < = 21);
viii. What will be the final value of x after executing the following code? for(int x = 0; x < 10, x++)
ix. Define stream.

Attempt any three questions. (8x3=24)


5. Write a Program in C- Language that inputs a number from user and prints its table in descending order using do while
loop?
6. Write a note on “if else if” with flow chart and explain its working with example.
7. Define Bug & discuss different types of error in C program?
8. Write a Program that input a number & reverse it using for loop?

You might also like