You are on page 1of 8

ICS PART 2 (COMPUTER SCIENCE GUESS)

CHAPTER 1 – INTRODUCTION TO DATABASE

IMPORTANT SHORT QUESTIONS (2023)

1) What you know about data processing.


2) List different activities in data processing.
3) Define data manipulation.
4) Differentiate between master file and transaction file.
5) How data is stored in random file.
6) What is meant by database also write example.
7) Write components of database.
8) Write any two objectives of database.
9) Difference between Database & DBMS.
10) What is meant by data independence?
11) Why data integration is important?
12) Write a short note on data dictionary.
13) What you know about SQL?
14) What is meant by data redundancy?
15) State the purpose of backup and recovery in DBMS.
16) Why is report generator used in database?

CHAPTER 2- TERMINOLOGIES OF DATABASE

IMPORTANT SHORT QUESTIONS (2023)

1) Define the term table/relation.


2) What is an attribute? Give an example?
3) Differentiate between field and record.
4) Define entity? Give an example.
5) Define properties of Relation.
6) Who is user/end user?
7) What is role of DBA in database system?
8) Define secondary key.
9) Distinguish between primary key & foreign key.
10) Write a note on composite key.

CHAPTER 3- DATABASE DESIGN PROCESS

IMPORTANT SHORT QUESTIONS (2023)

1) Define the term feasibility study.


2) Which activities are involved in data analysis?
3) Define the term cardinality of relation.
4) List ingredients of data modeling.
5) Differentiate between cardinality and modality.
6) What do know about relationship?
7) List any four components of physical database design.
8) Define database implementation.
9) State the use of data volume & usage analysis.
10) List down four data distribution strategies.
11) What do you meant by file organization?

CHAPTER 4- DATA INTEGERITY & NORMALIZATION

IMPORTANT SHORT QUESTIONS (2023)

1) Differentiate between data integrity & referential integrity.


2) Define synonym problem in database.
3) What is meant by redundancy?
4) Why normalization is used?
5) How partial dependency differs from transitive dependency?
6) Define insertion anomaly or when does an insertion anomaly occur?
7) Write a short note on 3rd normal form.

CHAPTER 5- INTRODUCTION TO MICROSOFT ACCESS

IMPORTANT SHORT QUESTIONS (2023)

1) What is Microsoft Access?


2) Write steps existing in MS-Access.
3) Define database wizards?
4) Define database objects.
5) Differentiate between form and report.
6) How can you define Query?

CHAPTER 6- TABLE & QUERY

IMPORTANT SHORT QUESTIONS (2023)

1) Define the term degree of relation.


2) What is meant by cardinality of relation?
3) Write down two characteristics of tables.
4) List three methods for creating table.
5) Describe the use of Design view in MS-Access.
6) List out different data types available in MS-Access.
7) What is filter? Discuss different types of filter in MS-Access?
8) Differentiate between relationship & joins.
9) Difference between sorting and filtering.
10) Name different types of queries used in database.
11) What do you know about select query?

CHAPTER 7- FORM AND REPORT

IMPORTANT SHORT QUESTIONS (2023)

1) Define Form? List different types of Forms in MS-Access.


2) What you know about datasheet Form?
3) Difference between Form & Sub-Form.
4) Describe radio button.
5) Why checkboxes are used?
6) Write a short on wild card mask.
7) Define Report? Write down uses of Report.
8) Write the use of switchboard.
CHAPTER 8- GETTING STARTED WITH C

IMPORTANT SHORT QUESTIONS (2023)

1) Differentiate between source code & object code.


2) Describe Linker & Loader.
3) What is structured programing language?
4) Write the purpose of compiler.
5) Write the role of define directory.
6) List out two advantages or characteristics of C.
7) What is meant by statement terminators?
8) What is the use of main () function in C?
9) Define header files.

CHAPTER 9- ELEMENTS OF C

IMPORTANT SHORT QUESTIONS (2023)

1) Define identifiers?
2) Define keywords in C.
3) Differentiate between declaring & defining a variable.
4) Write down three rules for naming variable in C.
5) What is the use of data type in C Language?
6) Write a note on string constant. Give two examples?
7) Why is C known as strongly typed language?
8) Write a note on arithmetic operator.
9) Define compound condition.
10) What is meant by operator precedence?
11) What are comments? Also define its types.
12) Write two difference between constant & variable.
13) What is meant by an assignment operator?

CHAPTER 10- INPUT/OUTPUT

IMPORTANT LIONG QUESTIONS (2023)

1) What is printf() function also write its syntax?


2) Define standard output.
3) What is meant by formate specifier?
4) What is escape sequence? List down four escape sequence.
5) Write a note on scanf() function with example.
6) Difference between getch() & getche().
7) Why is ampersand (&) character used in Scanf() function?
8) Write the general form of printf function.
9) Why formate specifiers are important to specified in I/O operations?

CHAPTER 11- DECISION CONSTRUCTS

IMPORTANT SHORT QUESTIONS (2023)

1) What is control structure?


2) What is simple if statement.
3) What is meant by compound statement?
4) Draw the flowchart of if-else statement.
5) What is nested if statement? Draw flowchart of nested if.
6) Write down the syntax of nested if structure.
7) Determine the output int number = 6; printf(“%d/n”, number++);
8) Find the error int n = 4.2.
9) Determine the output printf(“Hello /n World /n Pakistan”);
10) Find the error in the following code.
Int a, b;
a = -10;
If (a < 0);
b = a*a
Printf (“Result = %f”, b)
11) What is the output of the following code?
Int a, b, c;
a = 10;
b = 3;
If (a % b == 1)
c = 0;
Else
c = 1;
Printf (“%d”, c);
12) Predicit the output of the following code.
Int price = 10;
If (price! = 10)
Price = 0;
Else
Price += 2;
13) Write the following statement as a single statement.
Int x = 5;
Int y =10;
Int z = 15;
14) Find the error in the following code segment.
Int x, y, sum,
z = x + y;
Printf (“sum = %d”, z)
15) Determine the output of following code segment.
Int a = 5, b = 10;
If (a > b)
Printf (“Low Triangle”);
Else
Printf (“Huge Triangle”)
16) Predict the output.
Int a =1, b = 5;
If (a + b < 6)
Printf (“%d”, a);
Else
Printf (“%d”, b);
Printf (“%d”, a + b);
17) Find output of the following code segment.
If (2 % 3 == 1)
Printf (“GREAT”);
Else
Printf (“BAD”);
18) Write the alternative of if-else statement in C.
19) Why break statement is used in switch () structure?
20) What is conditional operator? Write its syntax.

CH-12 LOOP CONSTRUCTS

IMPORTANT SHORT QUESTIONS (2023)

1) Why loops are important in programming language? Give three reasons.


2) Write the syntax of while loop with example.
3) What is counter control loop?
4) Define For loop? Also write its syntax.
5) What is sentinel controlled loop and centinel value?
6) How does Nested loop work?
7) Differentiate between break & continue statement.
8) State the purpose of goto statement with syntax.
9) Convert the following code into while loop.
Int I;
For (I = 1; I <= 10; i++)
{
Printf (“/nPakistan”);
}
10) Determine the output of the following code.
Int I;
For (i=0; i<=3 ;)
Printf (“%d”, i++);
11) Convert the given program into do-while loop.
Int i;
For (i=3; i <- 39; i += 6)
Printf (“%d/n”, i);
12) Predict the output.
Int a;
For (a=1; a <= 10; a++)
Printf (“%d”, a);

13) Convert the following code into while loop.


For (int count=1; count <= 2; count++)
Printf (£count”);
14) Convert the following code into do-while loop.
For (i=1; i <= 5; i++)
Printf (“/n %d”, i);
15) Predict the output of the follwing code.
Int i, j = 3;
For (i=1; i<=5; i++)
Printf (“/n %d %d”, i, j);
16) Trace errors in the following code.
Void main ()
{
Int x, y = 5;
For(x0; x<3; x++)
If(y>=5)
Printf (“%d”, x);
17) How many time the following loop display “Welcome”?
For (i=12; i > 0; i++)
Printf (“Welcom”);

18) Predict the output of the following code segment.


Int n;
For (n=5; n >= 1; n--)
Printf (“%d”, n);
19) What is the output of the following code?
Int a, s;
S = 0;
For (a = 1; a <= 50; a+=3);
S=s+a;
Printf (“sum=%d”, s);
20) Determine the output of following code.
For (I = 1; I <= 10; I = i+2)
Printf (“%d”, i);
Ptintf (“Bye”);
21) Define infinite loop.
22) Draw the flowchart of do-while loop.

CHAPTER 13- FUNCTIONS IN C

IMPORTANT SHORT QUESTIONS (2023)

1) Define function? How many types of function in C?


2) What do you know about user-defined function? Give some examples.
3) Differentiate between built-in functions and user-defined functions.
4) How many (maximum) values can a function return using return statement?
5) What type of variables are declared outside any function?
6) Differentiate between formal parameters & actual parameters.
7) What is meant by scope of local variable?
8) How is a function activated? OR (functon call).
9) State the purpose of function defination.
10) Differentiate between local & global variables.
11) Define function declaration with its syntax.
12) Life time and scope of Local variable and global variable.

CHAPTER 14- FILE HANDLING IN C

IMPORTANT SHORT QUESTIONS (2023)

1) Define stream in C Language.


2) Compare binary and text stream.
3) What is meant by fgets () function?
4) How the end of text file is indicated?
5) What is the use of file pointer?
6) State the use of Newline and EOF markers?
7) Define fopen() function with syntax.
8) What are file opening modes/file access modes?
9) State the purpose of getc() and putc().
10) What is formated I/O?

………………………………………………………………………………………………………………………………………….

IMPORTANT LONG QUESTIONS

DATABASE CH- (1)

1) Define database system. Discuss four major components of database system.


2) Explain data models in detail.
3) Describe the file types from usage point of view.
4) Explain any four advantages of DBMS.

DATABASE CH- (3)

1) Define data modeling. Discuss its components in detail.


2) Briefly describes basic data distribution strategies.
3) Briefly explain the database design process with the help of diagram.
4) What is ER Model? What are symbols used in ER Diagram.
5) Explain different types of relationships indetail.

…………………………………………………………………………………………………………………………………..

IMPORTANT LONG QUESTIONS

C-LANGUAGE CH- (8)

1) What is program and programming language? Discuss two main categories of programming
language.
2) What is language processor? Discuss its different types.
3) What necessary steps are taken to prepare a C program for execution? Explain in detail.
4) Describe characteristic’s of High Level Language.
5) What is debug and debugging? Explain the types of Errors in C program.
C-LANGUAGE CH- (11 & 12)

1) What is control structure? Briefly describe the basic control structure for writing programs.
2) What is if-else-if statement? Write its syntax with the help of diagram & syntax.
3) What is switch statement? Explain its working with example.
4) What is Nested if structure? Elaborate with syntax & example.
5) Define and explain the working of while loop with the help of example.
6) Write a detail note on for loop. Also write its syntax with example.

C-LANGUAGE CH- (11 & 12) PROGRAMS ONLY.

1) Write a program to print odd numbers from 1 to 10 using while loop.


2) Write a program that inputs a number from user and display the factorial of that number.
3) Write a program that input a year from user and find it is leap year or not.
4) Write a program that input a number from user and determine whether it is
positive,negitive or zero.
5) Write a program that reads the current state of a telephone line. The user should enter W
for working and D for dead state. Use do-while loop.
6) Write a program that input a number from user and display the table of that number using
loop.
7) Write a program that convert a temperatures in degrees Fahrenheit to degree Celsius for
conversion use the following formula. Celsius = 5/9(fahrenheit-32).
8) Write a program that input a year from user and find whether it is Leap year or not.
9) Write a program that inputs a number and displays a message ‘’Prime Number’’ if it is prime
no otherwise displays ‘’Not a prime no’’.
10) Write a C program that inputs a number from user and check whether a number is even or
odd.
11) Write a C program to find the smallest number among three numbers.
12) Write a program that inputs a character from the user and checks whether it is vowel or
consonant.
13) Program find even and odd (if-else).
14) Print series using loop ( 1 3 5 7 9 11 13 15 17 19 21 23)
PRACTCE NESTED FOR LOOP ASTERIC PATERNS PROGRAMS

……………………………………………………………………………………………………………………………………………………

You might also like