0% found this document useful (0 votes)
28 views4 pages

Guess 2025 Comp

The document is a guess paper for Computer Science for 2nd year students in 2025, covering various topics including programming concepts, database management, and Microsoft Access. It includes definitions, explanations, and questions related to programming languages, data structures, and database systems. The content is structured into targeted days with exercises and questions for review.

Uploaded by

mfakharaalim1999
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views4 pages

Guess 2025 Comp

The document is a guess paper for Computer Science for 2nd year students in 2025, covering various topics including programming concepts, database management, and Microsoft Access. It includes definitions, explanations, and questions related to programming languages, data structures, and database systems. The content is structured into targeted days with exercises and questions for review.

Uploaded by

mfakharaalim1999
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

THE SQUARE ACADEMY

GUESS PAPER
COMPUTER SCIENCE 2nd YEAR 2025
BEST OF LUCK
“Don’t watch the clock; do what it does. Keep going.” –
Sam Levenson
“The future belongs to those who believe in the beauty
of their dreams.” – Eleanor Roosevelt

TARGET DAY 1 EXCERSICE MCQ’S + S/Q CH 8 -13


1. Define program: 2. What is linking?
A program is a set of instructions given to the computer to perform a Linking is the process of connecting object code with libraries to
specific task. create an executable file.
3. Define source code: 4. What are preprocessor directives?
Source code is the human-readable code written by a programmer in Preprocessor directives are instructions that begin with # and are
a programming language. processed before compilation, like #include.
5. What do you mean by delimiters? 6. What is a compiler?
Delimiters are symbols used to separate code elements, like ;, {, and A compiler is a software that converts source code into machine
}. code.
7. What do you mean by case sensitive in C language? 8. Define variables:
Case sensitive means C treats uppercase and lowercase letters Variables are names used to store data values in a program.
differently (e.g., Age and age are not the same).
9. Two rules for declaring variables in C: 10. What is a relational operator?
- Variable names must start with a letter or underscore. A relational operator compares two values and returns true or false
- They cannot use C keywords. (e.g., ==, <, >).
11. What is the use of assignment operator? 12. What is meant by operator's precedence?
It assigns a value to a variable (e.g., = is the assignment operator). It defines the order in which operators are evaluated in an
expression.
13. What is the use of printf() function? 14. What is a control structure?
printf() is used to display output on the screen. It is a block of programming that controls the flow of execution (e.g.,
if, while).
15. Describe sequence structure: 16. Define compound statement:
A sequence structure means instructions are executed one after A compound statement is a group of statements enclosed in {}.
another in order.
17. Why is break statement used in a switch statement? 18. Define condition:
It ends a case and prevents execution from falling into the next case. A condition is a logical expression that returns true or false.
19. Define nested loop: 20. List different types of functions in C:
A nested loop is a loop inside another loop. - Built-in functions - User-defined functions
21. Describe user-defined function: 22. Define function declaration with syntax:
It is a function created by the programmer to perform a specific task. It tells the compiler about the function name and return type. Syntax:
return_type function_name(parameters);
23. Define function body: 24. Define local variable:
It contains the code that defines what the function does. A local variable is declared inside a function and used only within that
function.
25. How long does a global variable exist in memory? 26. Who is a programmer?
It exists throughout the execution of the program. A programmer is a person who writes and tests computer programs.
27. Define object code: 28. Define structured programming:
Object code is the machine code generated after compiling the It is a programming style using clear structures like loops, conditions,
source code. and functions.
29. What is a header file? 30. What is a statement terminator?
It contains predefined functions and is included using #include. In C, the semicolon ; is used to end a statement.
31. Difference between standard identifier and user-defined 32. What are keywords?
identifier: Keywords are reserved words in C with special meanings, like int, if,
while.

1|Page YOUR SUCCESS IS OUR SUCCESS


THE SQUARE ACADEMY
Standard identifiers are predefined (like printf), while user-defined
are created by the programmer.
33. What is variable initialization? 34. Define constant:
It means giving a variable a value at the time of declaration. A constant is a fixed value that does not change during program
execution.
35. What is assignment operator? 36. What is increment operator?
It is used to assign a value to a variable, represented by =. It increases a variable's value by 1 (++).
37. What is format specifier? 38. Describe getch() function:
Used in printf() and scanf() to indicate data type (e.g., %d for int). It waits for a key press and doesn't display it on the screen.
39. List types of control structure: 40. Describe selection structure:
1. Sequence It allows the program to choose between different paths (e.g., if-
2. Selection else).
3. Looping
41. Explain if statement: 42. Three advantages of switch statement:
if executes a block of code only if the condition is true. - Makes code cleaner. - Easier to read than many if-else.
- Executes only matched case.
43. Define while loop: 44. Define goto statement:
It repeats code as long as the condition is true. It jumps to a labeled part of the code, avoiding normal flow.

45. Define built-in function: 46. What is function header?


These are functions already provided by C, like printf() and scanf(). It's the first line of a function showing its name, return type, and
parameters.
47. What is function definition? 48. What is meant by a function call?
It is the full function code, including header and body. It is the statement used to run a function.
49. What is meant by scope of variable? 50. How does a function return value?
It is the part of the program where the variable can be accessed. Using the return statement to send a result back to the caller.
TARGET DAY 2 (Task - 1) S/Q CH 5-7
1. What is Microsoft Access? 2. Two advantages of Microsoft Access
A relational database management system (RDBMS) that allows users Easy to use, flexible, and scalable; allows for quick creation and
to create, edit, and manage databases. modification of databases.
3. Advantages of RDBMS 4. Database wizard
Improved data integrity, reduced data redundancy, enhanced A software tool that guides users through the process of designing,
security, and better data management creating, and configuring a database.
5. Define redundancy 6. MS Access application window parts
The duplication of data in a database, which can lead to Menu bar, toolbar, navigation pane, and workspace.
inconsistencies and errors.
7. Menu bar and toolbar difference 8. Describe menu bar
Menu bar provides access to main menus, while toolbar offers quick A horizontal bar at the top of the MS Access application window that
access to frequently used commands provides access to main menus.
9. What is query? 10. Role of query in database
A request for specific data from a database, used to retrieve, update, To extract specific data, perform calculations, and update or delete
or manipulate data. data.
11. Reports 12. MS Access database major objects
A formatted presentation of data from a database, used to Tables, queries, forms, reports, and macros.
summarize, analyze, and present information.
13. Define form 14. Query and report difference
A user interface that allows users to interact with a database, used to Queries retrieve and manipulate data, while reports present data in a
enter, edit, or display data. formatted manner.

15. Define IDE 16. Loading MS Access


Integrated Development Environment, a software application that MS Access can be loaded by double-clicking on the MS Access icon or
provides tools for developing, testing, and debugging software. by selecting it from the Start menu.

17. Methods for creating tables in MS Access 18. Define relationship


Table Design view, Datasheet view, and Importing from another A connection between two or more tables in a database, based on
database. common fields.

19. Define sorting 20. Advantages of query


The process of arranging data in a specific order, either ascending or Improved data retrieval, reduced data redundancy, and enhanced
descending. data analysis.
21. Use of wildcards 22. Types of forms in MS Access
To search for data that matches a pattern or contains specific Table-based forms, query-based forms, and form/subform
characters. combinations.

2|Page YOUR SUCCESS IS OUR SUCCESS


THE SQUARE ACADEMY
23. AutoForm 24. Define list box
A feature in MS Access that automatically creates a form based on a A control on a form that displays a list of values, allowing users to
table or query. select one or more items.
25. Define check boxes 26. Linking in MS Access
Controls on a form that allow users to select or deselect options. The process of connecting two or more tables or databases, based on
common fields.
27. Define report
A formatted presentation of data from a database, used to
summarize, analyze, and present information.
TARGET DAY 2 (Task - 2) S/Q CH 1 - 4
I. Define data inconsistency: II. Define database:
When the same data is stored in different places but doesn't match, A database is a collection of related data stored in an organized way
it's called data inconsistency. so it can be easily accessed and managed.
III. Define data integration: IV. Define data integrity:
Data integration means combining data from different sources into Data integrity means the accuracy and consistency of data in a
one place. database.
V. Define data dictionary: VI. Define field:
A data dictionary is a file that contains details (like names and types) A field is a single piece of information in a record.
about all the data in a database. Example: In a student record, "Name" is a field.
VII. Enlist 4 different properties of a relation: VIII. Define entity:
_ Unique rows _ Unique column names _ All values in a column are An entity is a thing or person about which data is stored.
of the same type. Order of rows does not matter Example: Student, Teacher, Book.

IX. What is a view? X. Define indexes:


A view is a virtual table that shows data from one or more tables. Indexes are used to make data searching faster in a database.
XI. Define end user: XII. Who is a database administrator?
An end user is the person who uses the database or the software. A Database Administrator (DBA) is a person who manages and takes
care of the database.
XIII. Define entity: XIV. What is meant by Entity Relationship Diagram (ERD)?
(Same as VIII) An entity is something about which data is stored. An ERD is a diagram that shows relationships between entities in a
database.
XV. Define entity or object: XVI. Define an attribute. Give an example:
An entity or object is something real or imaginary that has data An attribute is a detail about an entity.
stored about it. Example: For a student, attributes can be Name, Age, Roll Number.

XVII. Define relationship: XVIII. Define cardinality:


A relationship shows how two entities are connected. Cardinality means the number of relationships between entities.
Example: One student can borrow many books – this is one-to-many.
XIX. Define modality: XX. What is meant by entity integrity?
Modality tells whether a relationship is required or optional. Entity integrity means every table must have a unique ID (primary
key) and it can't be empty.
XXI. Explain normalization: XXII. Define synonym:
Normalization is a process to organize data in a database to remove A synonym is a different word that means the same thing.
problems like repetition and inconsistency. Example: "Student" and "Pupil"
XXIII. Define homonym: XXIV. How second normal form is achieved?
A homonym is a word that sounds the same but has different A table is in Second Normal Form (2NF) when:
meanings. _ It is already in First Normal Form (1NF), and
Example: "Bat" (animal) and "Bat" (used in cricket). _ It has no partial dependencies (no attribute depends on part of a
primary key).
XXV. Describe partial dependency: XXVI. Write types of anomalies:
Partial dependency is when a column depends only on part of a Insertion anomaly Update anomaly
composite primary key. Deletion anomaly
XXVII. Define 3rd normal form: XXVIII. Describe transitive dependency:
A table is in Third Normal Form (3NF) when: It is in 2NF, and No Transitive dependency is when one column depends on another
column depends on another non-primary column (no transitive column, which depends on the primary key.
dependency).

3|Page YOUR SUCCESS IS OUR SUCCESS


THE SQUARE ACADEMY
XXIX. What is meant by referential integrity? XXX. Define mutual exclusive of data:
Referential integrity means a foreign key in one table must match a Mutual exclusive data means two things that cannot happen at the
primary key in another table. same time.
Example: A person cannot be both "Male" and "Female" at the same
time.

TARGET DAY 3 (Task 1) L/Q CH 1 – 4


1. What is file? Explain three types of files from usage point of view. 2. Define database system. Explain three major components of
database system.
3. What is key? Describe different types of key. 4. What is E-R model? What are symbols used in ER diagram?
TARGET DAY 3 (Task 2) L/Q CH 8-12
1. What is Identifiers? 2. What Errors?
3. Write a note on Programming Language?
TARGET DAY 3 (Task 3) Error Handling
I . Find the output of the following code. III . Write down output of the following.
printf(“Book \t reading \n”); float f=3.14159; printf (“f=%4.f”,f);
printf(“is a \t very good \n habit”);
II . Trace the output. IV . Trace the output.
void main(){ void main (){
int a, b, n; int x, y, z;
n=400; x=10;
a=n%100; y=20;
b=n/10; z=30;
n=n%10; x=x+y;
printf(“%d\n”, a); y=y+z;
printf(“%d\n”, b); z=x-y;
printf(“%d\n”, n); printf(“result=%d%d%d\n”, x, y, z);
getch();} getch();}
V . Trace the output. VI . Trace error.
int n=6; int x=5;
n++; int y
printf (“%d”, n); y=x+3
printf(“%d”,y);
VII . Trace the output of the following code. IX . Trace the output.
int i = - 786; {
printf(“%6d”, i); printf (“*\n **\n ***\n”);
}
X . Predict the output of the following code. printf (“*\n XXVI . Trace the error.
**\n ***\n****\n”); Int a;b;
a=10, b=5
if (a<b)
printf (“\n A is less than b”);
XXIV . Find error in the following segment. XXI . Predict the output of the following code segment?
float y 3.14 int a 9;
if (Y==3) if(a % 2 = = 0)
printf (“Errors”) print ("EVEN")
else
print ("Odd");

4|Page YOUR SUCCESS IS OUR SUCCESS

You might also like