Inter 2 Computer Success Series
Inter 2 Computer Success Series
AMBITIOUS
ACADEMY LAHORE
INTERMEDIATE PART-II
COMPUTER SCIENCE
HOME BASED WORK
SHEETS
FOR REGULAR STUDENTS
By
A 1st normal form B 2nd normal form C 3rd normal form D 4th normal form
10. The goal of normalization is to:
A * B ? C : D !
12. Which field type can be indexed?
A 2 B 3 C 4 D 5
UNIT#07+08
1. C language was developed in
A % B $ C # D @
4. Which of the following key is used to save as file:
A F2 B F3 C F5 D F9
5. The name header file is written between:
A [] B () C <> D {>
6. Header file in C contains:
A .c B .txt C .hf D .h
10. The output of the compiler is:
A 2 B 3 C 4 D 5
12. A report may be based on:
UNIT#09+10
1. Variables and constants name cannot contain a(an):
A 30 B 32 C 34 D 36
4. The number of bytes used by int type in C is:
A 2 B 4 C 6 D 8
5. The only binary operator in the following is:
A ? B ++ C M D +
6. a + = b is equivalent to:
A A=0 & B=1 B A=1 & B=0 C A=1 & B=1 D All of these
8. int is …….. in C.
A 1 B 2 C 4 D 8
10. The left side of an assignment statement holds:
A \a B \b C \m D \n
12. Printf() is a:
A 27 B 28 C 29 D 30
14. the function getch ( ) is defined as:
A 0 B 1 C -1 D None
4. In If-Statement, false is represented by:
A 0 B 1 C 2 D 3
5. The conditional operator is used as alternate to:
A If B ++ C ? D ()
9. The expression 0% 4 has a value equal to:
A 0 B 1 C 2 D 4
10. How many basic selection statements are in C?
A 1 B 2 C 3 D 4
11. How many types of loop structures are present
A 1 B 2 C 3 D 4
12. One execution of loop is known as a (n):
A 8 B 9 C 10 D 11
15. A loop within a loop is called:
UNIT#13+14
Main Stop Jia Musa Shahdara Lahore Ph: 0333-4082706/ 0300-0040248
VISIT OUR WEBSITE PARH AMBITIOUS
Prepared By Prof. Suffian (HOD Computer Science Ambitious Academy Lahore)
Page 7 of 15
AMBITIOUS ACADEMY LAHORE
HOME BASED WORK SHEETS (NEW PAIRING SCHEME)
1. Another name of built-in function is:
A 1 B 2 C 3 D 4
7. Global variables are created in:
A 1 B 2 C 3 D 4
11. A …… can store text only.
A w B w+ C r+ D r
13. On successful closing a file, the fclose () returns:
UNIT#9+10
1. What is an identifier? Give an example. 2. Define format specifier with example.
3. Differentiate b/w Standard and user- 4. Write the syntax of Printf statement.
defined identifier.
5. C is a case sensitive language. What does 6. What is the use of OR and AND logical
it mean? operator?
7. Differentiate b/w Declaring and defining a 8. What is compound assignment operator?
variable.
9. What is the value of Y after the following 10. What is garbage value?
code executes?
Float y=3.4 +sqrt (25.0)
11. Identify error in the following lines: 12. Why does cancellation error occur?
Integer A=2+3;
Float B=5;
Int C=A+B;
13. Find the output of following code: 14. Differentiate b/w getch () function and getche()
Main() function.
{
Printf(“444\n”);
Printf(“44”);
}
15. Give single print statement to print the 16. Define standard input.
followingmessage:
No. of employees
UNIT#11+12
1. What is Control Structure? List types. 2. What is the use of if-else statement?
3. Define Compound statement. 4. What do you mean by condition?
5. Define one way decision and draw flow chart. 6. What is nested if statement. Write syntax.
7. What is the output of following code? 8. Trace the error from the following:
Int m, n: Void main ()
m=0; {
n=m; Int a=2;
if (m= = n) If (a=1);
printf (“AMBITIOUS”); Printf (“oK”);
else else
Printf (“ACADEMY”); printf (“No”);
}
9. Write a program that inputs a number from 10. Write down the syntax of ternary operator.
user and finds it is positive, negative or zero.
11. Write a program in C that inputs a number by 12. Write a program which inputs three numbers
the user and checks whether it is even or odd. and displays smallest number.
13. Write syntax of if-else statement. 14. Write a program in C that inputs the number of
months of the year and displays the number of
days of the corresponding month using if-else-if
statement.
15. Define While loop. Make its flow chart. 16. Differentiate b/w inner and outer loop.
17. Write output of following program fragments: 18. Why is sentinel value used in loop?
n=0
While (n<=4)
{
Printf (“ %3d % 3d\n”, n, 10-n);
n++
}
UNIT#13+14
1. What is meant by function definition? 2. What is lifetime of global variable?
3. Write syntax of function definition. 4. How long the global variable exists in
memory?
5. Define function body. 6. What is return statement?
7. Write the use of function prototype? 8. Describe the purpose of file handling?
9. Write the general form of function 10. Write file opening modes.
prototype.
11. What is function call statement? 12. Write the use of new line marker.
Main Stop Jia Musa Shahdara Lahore Ph: 0333-4082706/ 0300-0040248
VISIT OUR WEBSITE PARH AMBITIOUS
Prepared By Prof. Suffian (HOD Computer Science Ambitious Academy Lahore)
Page 11 of 15
AMBITIOUS ACADEMY LAHORE
HOME BASED WORK SHEETS (NEW PAIRING SCHEME)
13. Define local variables. 14. Define pointer.
15. What is meant by scope of variables? 16. How is file opened and closed in C?
17. Define global variables. 18. Write use of fopen function.
19. What is function header and declaration? 20. Discuss Difference b/w binary and text
write their syntax. stream.
21. Define stream and function. 22. Give types of functions in C
LONG QUESTIONS
UNIT#01
1. Explain Major Components of DBMS. Also Discuss types of Data Base model
2. Discuss Advantages and Disadvantages of DBMS.
3. Write activities involved in Data Processing.
4. How Relations are formed in DBMS. Write down Properties of Relation.
UNIT#06
1. What is Table Write its characteristics and methods to modify a table.
2. Explain procedure for creating a simple form also discuss procedure to create form
by using wizard and design view.
3. Define query. Discuss its types.
4. How can we extract data from two tables?
UNIT#08
1. Describe language Processor and their use. Discuss different Types of language
processors.
2. What is an error? Explain different types of Errors in C-Language.
3. Discuss structure of C Program.
4. Discuss Program execution cycle with block diagram.
5. Explain different types of variables.
UNIT#11
1. Write a program that inputs marks and displays “congratulation” if the marks are 40
or more otherwise “Fail”
UNIT#12
1. What are loops? Discuss different loops provided by C. Write syntax of each.
2. Discuss nested and do while loops? Explain their working with examples.
3. What is While and do while loops. Explain working with example.
4. What is control structure? Describe them for writing a program.
5. What is do until and while wend loop? Write their syntax.
Database
Short Question
1- Data vs Information
2- Field = Attribute = Column = Fact = Property
3- Tuple = Record = Instance = Occurrence = Row
4- Data file = Entity = Table = Relation
5- Database with example
6- DBMS and RDBMS
7- File and its type (Program Vs Data )
8- Data dictionary
9- Data independence
10- Data integrity [and its types]
11- Data Security
12- View
13- Index
Main Stop Jia Musa Shahdara Lahore Ph: 0333-4082706/ 0300-0040248
VISIT OUR WEBSITE PARH AMBITIOUS
Prepared By Prof. Suffian (HOD Computer Science Ambitious Academy Lahore)
Page 13 of 15
AMBITIOUS ACADEMY LAHORE
HOME BASED WORK SHEETS (NEW PAIRING SCHEME)
14- File organization
15- Cardinality Vs Modality
16- Entity Vs Entity instance
17- Synonyms Vs Homonyms
18- Functional dependency
19- Determinant
20- IDE
21- Wizard
22- Degree Vs Order (cardinality)
23- Input mask
24- Wild Card
25- Macros
26- Join
27- Sub-form
28- Form elements (Combo box Vs List)
29- Query
30- Property of relation
31- SQL
32- Field properties
C Language
Short Question
1. Introduction to C
2. Computer program and programmer
3. Structured Vs Non structured language
4. C Statement
5. Machine Independence
6. Header file
7. Preprocessor directives
8. Delimiter
9. Comments
10. Conditional operators
11. Linker Vs Loader
12. Identifiers and its types
13. Variable Vs Constant
14. Variable declaration Vs Variable definition
15. Source Code Vs Object
16. Lvalue Vs Rvalue
17. Data types and its types
18. Overflow Vs Underflow
19. Assignment statement
20. Standard Input Vs Standard Output
21. printf() Vs scanf()
Dear Students,
Director,