Here
Here
a) Form
b) Record
c) Field
d) Query
a) Project planning
b) Requirement analysis
c) Data analysis
d) Feasibility study
a) Attributes
b) Entities
c) Rows
d) Relations
a) &
b) #
c) $
d) *
a) Attribute
b) Entity
c) Tuple
d) Field
a) Hierarchical
b) Network
c) Object-oriented
d) Relational
a) Sequence
b) Selection
c) Repetition
d) Iteration
a) User-defined functions
b) Library functions
c) Custom-made functions
d) Customized functions
a) for
b) do-while
c) nested loop
d) while
a) %d
b) %f
c) %c
d) %s
Question 11: The process of identifying and removing errors in a program is called:
a) Debugging
b) Fixing
c) Updating
d) Modifying
a) 32
b) 34
c) 36
d) 38
a) Strcpy
b) Strpcy
c) Strncpy
d) Copy
Question 14: What is the output of %4.2f for the value 0.78962?
a) 0.78
b) 0.79
c) 000.78
d) 0.7896
1. Each set of related items in a table is called: a. Form b. Record c. Field d. Query
2. All the hardware costs are considering during: a. Project planning b. Requirement analysis c. Data analysis
d. Feasibility study
6. The most commonly used database model in current database development is: a. Hierarchical b. Network
c. Object-oriented d. Relational
7. Another term for computer making a decision is: a. Sequence b. Selection c. Repetition d. Iteration
8. Another name for built-in function is: a. User-defined function b. Library function c. Custom made function
d. Customized function
9. In which loop statement, terminator is part of its syntax: a. for b. do-while c. nested loop d. while
11. The process of identifying and removing errors in program is called: a. Debugging b. Fixing c. Updating
d. Modifying
13. The following function is used to copy a string to an array of characters: a. Strcpy b. Strpcy c. Strncpy d.
Copy
14. Format specifier %4.2f for value .78962, will produce output: a. 0.78 b. 0.79 c. 000.78 d. 0.7896
Section I (MS-Access)
Section I (C-Language)
C
int n = 15;
printf("%d", n % m);
5. Find errors in the following code:
C
Float avg;
printf("Enter a number: ");
scanf("%f", avg);
Use code with caution.
C
void main();
float n1 = 4.5, n2 = 2.1;
printf("%f, %f", n1, n2);
8. Define stream.
3. Predict the output of the following code segment and draw flowchart:
char g;
if (g == 'M')
printf("Male ");
else
printf("Female ");
int i = 5;
while (i <= 10) {
printf("%d \n", i);
i++;
}
int x = 1;
while (x++ <= 5) {
printf("%d \n", x);
}
C
void counter(void);
Use code with caution.
Note: The quality of the extracted text might be affected by the image quality and the complexity of the layout.
convert following image into text if the text in mcqs then extract as mcqs and if in short question form then
extract as short question if long then as long form extract
Section I (MS-Access)
2. Consider the following figure and indicate the Field names and records:
4. How will you determine whether database development is feasible for an organization or not?
6. Why it is important to normalize the relation before you use it for storing data?
Section I (C-Language)
s = ut + 1/2at^2
C
int x = 7;
int y = 3;
printf("%d", x % y);
Use code with caution.
C
int x = 7;
void main() {
printf("%d", c);
}
Use code with caution.
C
void main() {
printf("How \tare \t you");
printf("\n Bye");
}
Use code with caution.
C
void main() {
int x = 5;
int y = x + y;
printf("%d", sum);
}
Use code with caution.
Note: The quality of the extracted text might be affected by the image quality and the complexity of the layout.
convert following image into text if the text in mcqs then extract as mcqs and if in short question form then
extract as short question if long then as long form extract
Here's the text extracted from the image, formatted into MCQs and short answer questions:
C-LANGUAGE
Q.8. Write a program in C-language that inputs a character and displays whether it is vowel or consonant.
Q.9. Write a program that produces the following output using loop:
OBJECTIVE
2. In 3NF, a non-key attribute must not depend on: a. Key attribute b. Composite attribute c. Primary attribute
d. Non-key attribute
3. The output of the query is in the form of: a. Object b. Table c. Report d. Table
4. In MS-Access, text type allows maximum number of characters up to: a. 255 b. 256 c. 260 d. 266
5. Select a data model which is more flexible among others: a. Network data model b. Hierarchical model c.
Logical data model d. Relational data model
6. In a table, each primary key should be: a. Unique b. Summarized c. Non-unique d. Null
7. Format specifier %3f for value -0.005, will produce output: a. 0.005 b. -005 c. -.005 d. -0.005
8. Select a statement which is used for making two-way decision: a. switch b. if-else c. if d. nested if
9. Consider x = 12 and y = 13, the output of the expression x > y ? x+y : x-y will be: a. -1 b. 1 c. 25 d. 15
10. Select the loop in which condition is written before the body of the loop: a. do-while loop b. wend loop c.
Infinite loop d. while loop
11. Local variables are created in: a. Hard disk b. ROM c. RAM d. Cache
Note: The quality of the extracted text might be affected by the image quality and the complexity of the layout.
convert following image into text if the text in mcqs then extract as mcqs and if in short question form then
extract as short question if long then as long form extract
Section I (MS-Access)
C
int x = 1, y, z;
if ((x == y) || (y == z) || (z == x))
printf("Yes");
else
printf("No");
Use code with caution.
C
void main() {
for (i = 1; i <= 10; i++) {
printf("Pakistan");
}
}
Use code with caution.
C
int i, p = 1;
for (i = 1; i < 6; i += 1) {
p *= i;
printf("%d", p);
}
Use code with caution.
Q.5. What are database anomalies? Briefly discuss insertion, deletion and modification anomalies.
Q.8. Write a program in C language which takes three numbers as input from user and display the
smallest number by using logical operators.
Q.9. Write a program that displays first five numbers and their sum using while loop.
OBJECTIVE
3. In 3NF, a non-key attribute must not depend on: a. Non-key attribute b. Key attribute c. Composite
attribute d. Sort key
4. In a relational database, a single piece of information is called: a. Table b. Record c. Entity d. Attribute
7. The function that is used to display output on screen is called: a. printf b. scanf c. pow d. display
8. For loop:
C
for (i = 1; i < 6; i += 1) {
p *= i;
printf("%d", p);
}
Use code with caution.
9. Series
Note: The quality of the extracted text might be affected by the image quality and the complexity of the layout.
convert following image into text if the text in mcqs then extract as mcqs and if in short question form then
extract as short question if long then as long form extract
Section I (MS-Access)
3. How many fields and records does the following table contains?
Section I (C-Language)
a = 2b^2c^3
C
Integer x, y;
Use code with caution.
C
int x = 10, y = 20.5;
Use code with caution.
C
void main() {
printf("OK");
}
Use code with caution.
C
printf("%d", x++);
printf("Hello \n Dear");
Use code with caution.
Note: The quality of the extracted text might be affected by the image quality and the complexity of the layout.
Some parts of the image were not clear and the text might be incomplete or inaccurate.
convert following image into text if the text in mcqs then extract as mcqs and if in short question form then
extract as short question if long then as long form extract
Here's the text extracted from the image, formatted into MCQs and short answer questions:
Section I (MS-Access)
C
int p = 3, q = 5;
if ((p > q) || (p <= -4)) {
p = p + 1;
} else {
p = p - 1;
}
printf("%d", p);
Use code with caution.
C
void main(void) {
int a, k = 1;
for (a = 1; a < 10; a++) {
printf("%d", k + a);
}
}
Use code with caution.
5. Predict output:
C
a = 3;
for (i = 5; i > 0; i--) {
a = a + k;
printf("%d\n", a);
}
Use code with caution.
Q.8. Write a program that inputs an integer and determines whether it is positive, negative or zero.
Q.9. Write a program that displays odd number from 3 to 15 using any loop.
OBJECTIVE
1. Which of the following may be a temporary file? a. Transaction b. Master c. Backup d. Basic
3. Customers, cars and parts are examples of: a. Attribute b. Relationships c. Entity d. Cardinality
4. A relation that is in 2NF and contains no transitive dependency is said to be in: a. 1NF b. 2NF c. 3NF d.
4NF
5. The smallest meaningful unit of data in a database is called: a. Character b. File c. Record d. Field
6. The number of fields in a relation is called the: a. Degree b. Cardinality c. Domain d. Range
7. stdio stands for: a. Simple input output b. Standard input output c. Symbolic input output d. String input
output
Note: The quality of the extracted text might be affected by the image quality and the complexity of the layout.
Some parts of the image were not clear and the text might be incomplete or inaccurate.
convert following image into text if the text in mcqs then extract as mcqs and if in short question form then
extract as short question if long then as long form extract
Here's the text extracted from the image, formatted into MCQs and short answer questions:
Section I (MS-Access)
2. Identify primary key and foreign key from the following table structure:
Section I (C-Language)
Q.3. Attempt any six parts.
C
int x=10+20;
scanf("%d", x);
Use code with caution.
C
int x=2, y=3, z;
z=(x+5)/(y+5);
printf("%d", x+y+z);
Use code with caution.
C
char ch1='A', ch2='B';
ch1=ch2; ch2=ch1;
printf("%c%c", ch1, ch2);
Use code with caution.
C
int L=10, W=5, Area;
L*W=Area;
printf("Area-%d", Area);
Use code with caution.
9. What is an EOF?
Note: The quality of the extracted text might be affected by the image quality and the complexity of the layout.
Some parts of the image were not clear and the text might be incomplete or inaccurate.
convert following image into text if the text in mcqs then extract as mcqs and if in short question form then
extract as short question if long then as long form extract
Section I (MS-Access)
C
int a=1, b=5;
if ((a+b)<6)
printf("Result %d", b);
else
printf("Answer-%d", a+b);
Use code with caution.
C
k=0;
while(k<=5) {
printf("%3d%3d\n", k, 10-k);
k++;
}
Use code with caution.
C
while (count <=10) {
printf("%d \n", count);
count++;
}
Use code with caution.
Q.8. Write a program that inputs temperature and displays a message according to the following data:
Temperature Message Greater than 40 Hot day Between 25 and 40 (inclusive) Pleasant day Less than 25 Cool
day
Q.9. Write a program in C language that display numbers from 1 to 20 and also compute and display their
sum and average by using loop.
OBJECTIVE
1. Organizing the database in computer storage is done in: a. Logical design b. Physical design c. Analysis d.
Implementation
3. Storage and retrieval of data is related to: a. Data capturing b. Data manipulation c. Managing output results
d. Data sorting
5. Which of the following is a valid character constant: a. 'a' b. "abc" c. 'abc' d. 'a+b'
C
a = 5 * ++b;
Use code with caution.
10. A program that combines object program with additional object files is: a. Linker b. Loader c.
Preprocessor d. Interpreter
Note: The quality of the extracted text might be affected by the image quality and the complexity of the layout.
Some parts of the image were not clear and the text might be incomplete or inaccurate.
convert following image into text if the text in mcqs then extract as mcqs and if in short question form then
extract as short question if long then as long form extract
Here's the text extracted from the image, formatted into MCQs and short answer questions:
Section I (MS-Access)
2. If you have a relation STUDENT in your database, such that STUDENT (Col1, Col2, Col3, Col4, Col5),
create a view on first and last attribute of STUDENT.
7. What is redundancy?
Section I (C-Language)
1. Define variable.
2. What is an array?
C
a=10,
b=40,
printí ("Sum", a*b)
Use code with caution.
C
int x=10+20;
scanf("%d", x);
Use code with caution.
C
char ch1='A', ch2='B';
ch1=ch2; ch2=ch1;
printf("%c%c", ch1, ch2);
Use code with caution.
C
int L=10, W=5, Area;
L*W=Area;
printf("Area-%d", Area);
Use code with caution.
Note: The quality of the extracted text might be affected by the image quality and the complexity of the layout.
Some parts of the image were not clear and the text might be incomplete or inaccurate.
convert following image into text if the text in mcqs then extract as mcqs and if in short question form then
extract as short question if long then as long form extract
Here's the text extracted from the image, formatted into MCQs and short answer questions:
Section I (MS-Access)
C
int p = 3, q = 5;
if ((p > q) || (p <= -4)) {
p = p + 1;
} else {
p = p - 1;
}
printf("%d", p);
Use code with caution.
C
void main(void) {
int a, k = 1;
for (a = 1; a < 10; a++) {
printf("%d", k + a);
}
}
Use code with caution.
5. Predict output:
C
a = 3;
for (i = 5; i > 0; i--) {
a = a + k;
printf("%d\n", a);
}
Use code with caution.
C
int a = 3, b = 2;
printf("Result = %d", a % b);
Use code with caution.
C
int i = 5;
do {
printf("PAKISTAN ");
} while (i > 0);
Use code with caution.
Q.7. What is basic structure of C program? Explain its different parts briefly.
Q.8. Write a program in C language that inputs marks of student and display his grade according to given
criteria.
Marks Grade
Q.9. Write a program that displays first five numbers with their cubes using loop.
Output:
1 8 27 64 125
Note: The quality of the extracted text might be affected by the image quality and the complexity of the layout.
Some parts of the image were not clear and the text might be incomplete or inaccurate.
convert following image into text if the text in mcqs then extract as mcqs and if in short question form then
extract as short question if long then as long form extract
Here's the text extracted from the image, formatted into MCQs and short answer questions:
OBJECTIVE
2. The graphical query tool is known as: a. Query grid b. Design grid c. Query form d. Design form
3. A virtual table that is constructed from other tables is called: a. Table b. Tuple c. Relation d. View
4. The data that causes inconsistency lacks: a. Good data b. Data integrity c. Data redundancy d. Data anomaly
5. Referential integrity is applied on: a. Primary key b. Foreign key c. Sort key d. Composite key
7. The keyword "break" cannot be used in: a. do while b. for c. while d. switch
8. The programmer can debug a source code using: a. Compiler b. Interpreter c. Debugger d. Linker
9. Memory is allocated to a local variable at the time of its: a. Declaration b. Destruction c. First reference d.
Definition
11. Character conversion may occur in: a. Input stream b. Binary stream c. Output stream d. Input stream
12. Format specifier %8.3f for the value 4.1257, will produce the output: a. 4.125 b. 4.126 c. 04.126 d.
04.125
14. The data type in C-language that can handle fractional values, is called: a. long b. char c. float d. int
Section I (MS-Access)
2. In which condition, you need to create a composite key in a relation? Justify your answer.
Note: The quality of the extracted text might be affected by the image quality and the complexity of the layout.
Some parts of the image were not clear and the text might be incomplete or inaccurate.
convert following image into text if the text in mcqs then extract as mcqs and if in short question form then
extract as short question if long then as long form extract
Section I (MS-Access)
Section I (C-Language)
2. Write down the following statement in C-language: "Age is between 18 years and 50 years"
C
integer x, y;
z=x+y;
printf("z=%d",z)
Use code with caution.
4. Find output:
C
a=5;
b=10;
printf("Result = %d", a+b);
Use code with caution.
C
void main();
int a=10;
printf("m Fort/F231988');
Use code with caution.
7. Describe the purpose of '\0' in strings.
8. What is stream?
C
int a=10, b=5;
printf("Punjab");
Use code with caution.
C
for(i=1; i<=5; i++)
printf("In Pakistan");
Use code with caution.
C
int n;
for(n=10;n>-10;n++)
printf("%d",n);
Use code with caution.
6. Define function.
Q.7. What are errors? Discuss different types of errors which may occur in C-Language program.
Q.8. Write a program in C-Language that inputs a year and finds whether it a leap year or not using if-else
structure.
Q.9. Write a program that displays first five odd numbers and their average using loop.
Note: The quality of the extracted text might be affected by the image quality and the complexity of the layout.
Some parts of the image were not clear and the text might be incomplete or inaccurate.
convert following image into text if the text in mcqs then extract as mcqs and if in short question form then
extract as short question if long then as long form extract
Here's the text extracted from the image, formatted into MCQs and short answer questions:
Section I (MS-Access)
Section I (C-Language)
2. Write down the following statement in C-language: "Age is between 18 years and 50 years"
C
integer x, y,
z=x+y;
printf("z=%d",z)
Use code with caution.
4. Find output:
C
a=5;
b=10;
printf("Result = %d", a+b);
Use code with caution.
C
void main();
int a=10;
printf("m Fort/F231988');
Use code with caution.
8. What is stream?
C
int a=10, b=5;
printf("Punjab");
Use code with caution.
C
for(i=1; i<=5; i++)
printf("In Pakistan");
Use code with caution.
C
int n;
for(n=10;n>-10;n++)
printf("%d",n);
Use code with caution.
6. Define function.
Q.7. What are errors? Discuss different types of errors which may occur in C-Language program.
Q.8. Write a program in C-Language that inputs a year and finds whether it a leap year or not using if-else
structure.
Q.9. Write a program that displays first five odd numbers and their average using loop.
Note: The quality of the extracted text might be affected by the image quality and the complexity of the layout.
Some parts of the image were not clear and the text might be incomplete or inaccurate.
convert following image into text if the text in mcqs then extract as mcqs and if in short question form then
extract as short question if long then as long form extract
Here's the text extracted from the image, formatted into MCQs and short answer questions:
Section I (MS-Access)
Section I (C-Language)
Q.3. Attempt any six parts.
2. Write down the following statement in C-language: "Age is between 18 years and 50 years"
C
integer x, y;
z=x+y;
printf("z=%d",z)
Use code with caution.
4. Find output:
C
a=5;
b=10;
printf("Result = %d", a+b);
Use code with caution.
C
void main();
int a=10;
printf("m Fort/F231988');
Use code with caution.
8. What is stream?
C
int a=10, b=5;
printf("Punjab");
Use code with caution.
C
for(i=1; i<=5; i++)
printf("In Pakistan");
Use code with caution.
5. Predict output of the following code segment:
C
int n;
for(n=10;n>-10;n++)
printf("%d",n);
Use code with caution.
6. Define function.
Q.7. What are errors? Discuss different types of errors which may occur in C-Language program.
Q.8. Write a program in C-Language that inputs a year and finds whether it a leap year or not using if-else
structure.
Q.9. Write a program that displays first five odd numbers and their average using loop.
Note: The quality of the extracted text might be affected by the image quality and the complexity of the layout.
Some parts of the image were not clear and the text might be incomplete or inaccurate.
convert following image into text if the text in mcqs then extract as mcqs and if in short question form then
extract as short question if long then as long form extract
Here's the text extracted from the image, formatted into MCQs and short answer questions:
OBJECTIVE
Time: 20 Minutes Marks: 15
4. Which of the following data model is more flexible: a. Network data model b. Relational data model c.
Hierarchical data model d. Basic data model
6. The smallest meaningful unit of data in a database is called: a. Field b. Character c. Byte d. Word
10. Local variables are also called: a. Automatic variables b. Normal variables c. Global variables d. Basic
variables
13. Format specifier %8.2f for value 4.12157, will produce output: a. 4.12 b. 04.12 c. 004.12 d. 05.121
14. The case block ends with: a. End Case b. break c. Case else d. default
Section-I (MS-ACCESS)
2. Discuss the advantage of variable length field over fixed length field.
Note: The quality of the extracted text might be affected by the image quality and the complexity of the layout.
Some parts of the image were not clear and the text might be incomplete or inaccurate.
convert following image into text if the text in mcqs then extract as mcqs and if in short question form then
extract as short question if long then as long form extract
Here's the text extracted from the image, formatted into MCQs and short answer questions:
Section I (MS-Access)
2. Write the following statement in C-Language code: Temp between 15 and 32 inclusive
C
int m = 10.3;
int y = 5;
printf("%d %d", m, y);
Use code with caution.
C
int x = 5, y = 10;
x = x + y;
y = y - x;
printf("%d %d", x, y);
Use code with caution.
C
#include< studio.h>
int n = 512, b;
void main() {
int a = 10;
printf("%d", a);
}
Use code with caution.
C
for(int i = 1; i <= 5; i++) {
printf("Pass");
}
Use code with caution.
C
for(int i = 1; i <= 5; i++) {
printf("%d\n", i);
}
Use code with caution.
C
for(int x = 1; x <= 5; x++) {
printf("%d\n", x);
}
Use code with caution.
MS-Access
Q.5. Define database model. Explain hierarchical model along with example.
Q.6. Define view. What are two table views available in MS-Access? How can you switch between them?
C-Language
Q.7. How would you create, edit, execute a program in C-Language? Discuss briefly.
Q.8. Write a program in C-language that inputs numbers and finds the smallest number.
Q.9. Write a program in C-language that calculates the sum of the following series using loop:
Note: The quality of the extracted text might be affected by the image quality and the complexity of the layout.
Some parts of the image were not clear and the text might be incomplete or inaccurate.
convert following image into text if the text in mcqs then extract as mcqs and if in short question form then
extract as short question if long then as long form extract
Here's the text extracted from the image, formatted into MCQs and short answer questions:
OBJECTIVE
2. Which of the following is not a type of database key? a. Primary b. Foreign c. Entity d. Secondary
3. The full form of the query is: a. Quick Entry b. Quick Form c. Query d. Perfect
4. A relation that is in 2NF and contains no transitive dependency is said to be in: a. 1NF b. 2NF c. 3NF d.
4NF
6. The product of user system interaction is known as: a. Input b. Output c. Language d. Data
8. All of the following are control statements except: a. Sequential b. Repetition c. Selection d. Float
9. The first line of function definition is known as: a. Function body b. Function header c. Function call d.
Function case
10. If int a=5, then the statement printf("%d", a/10) will display: a. 0 b. 0.5 c. 5 d. 5
11. What will be the value of b after executing the following statement? b=(5<10)?25:10; a. 10 b. 5 c. 25 d.
15
12. The data type that should be used to store decimal numbers is: a. int b. char c. float d. string
Section I (MS-Access)
2. How many attributes and records are contained in the following relation?
4. If "A" is Primary key, "B" is Alternate key, "C" is Foreign key, "D" is Composite key, then which
attribute is known as Alternate key?
Note: The quality of the extracted text might be affected by the image quality and the complexity of the layout.
Some parts of the image were not clear and the text might be incomplete or inaccurate.
convert following image into text if the text in mcqs then extract as mcqs and if in short question form then
extract as short question if long then as long form extract
Here's the text extracted from the image, formatted into MCQs and short answer questions:
Section I (MS-Access)
4. What is MS-Access?
Section I (C-Language)
C
printf ("%d", ++x);
printf ("\n%d ", x++);
Use code with caution.
C
int main (void) {
int x = 32;
int y = 4;
printf("%d and %d is %d", x, y, x% y);
}
Use code with caution.
C
int x,y
x+++;
printf ("%d", x+y);
Use code with caution.
C
int price = 19;
if (price != 10)
printf("Price ");
Use code with caution.
3. Define loop.
C
int c=2;
do {
printf(c);
c++;
} while(c<-5);
Use code with caution.
MS-ACCESS
Q.7. What is programming language? Discuss two main categories of programming languages.
Q.8. Write a program that displays first five odd numbers and their average using loop.
Note: The quality of the extracted text might be affected by the image quality and the complexity of the layout.
Some parts of the image were not clear and the text might be incomplete or inaccurate.
convert following image into text if the text in mcqs then extract as mcqs and if in short question form then
extract as short question if long then as long form extract
Here's the text extracted from the image, formatted into MCQs and short answer questions:
OBJECTIVE
Time: 20 Minutes Marks: 15
1. A key strictly used for data retrieval purposes: a. Super key b. Candidate key c. Sort key d. Primary key
2. Type of file that requires largest processing time: a. Sequential b. Random c. Index sequential d. Direct
Access
4. Identifies the database application, name, you are running in MS Access: a. Title bar b. Menu bar c.
Toolbar d. Scroll bar
5. When same name is used for two different attributes: a. Synonyms b. Homonyms c. Information d.
Acronyms
7. Which of the given is not a control statement? a. while b. if-else c. for d. switch
10. The first line of function definition is: a. Function header b. Function body c. Arguments d. Prototypes
11. Function specifier %3.2f will display value 3.14159 as: a. 3.14 b. 3.140 c. 3.141 d. 3.142
12. In Alt+F5, which key is used to compile a program? a. Alt+F2 b. Alt+F9 c. Ctrl+F9 d. Alt+F3
Section-I (MS-ACCESS)
Note: The quality of the extracted text might be affected by the image quality and the complexity of the layout.
Some parts of the image were not clear and the text might be incomplete or inaccurate.
convert following image into text if the text in mcqs then extract as mcqs and if in short question form then
extract as short question if long then as long form extract
Section I (MS-Access)
1. Identify the primary key and total number of attributes in the following table:
7. Define filter.
Section I (C-Language)
2. Convert the following statement into C-language: "Weather is greater than 10 and less than 20"
C
int A, B;
A = 10;
Use code with caution.
C
x = 2;
y = 3;
z = 4;
printf("Answer=%d", x + y*z);
Use code with caution.
C
Display ("Hello");
Write the output of the following statement.
printf("Blue Painter");
Use code with caution.
C
if (x+y > y+t)
printf("%d", y+t);
else
printf("%d", x+t);
Use code with caution.
C
for(i=1; i<=5; i++)
printf("In Pakistan");
Use code with caution.
C
int n;
for(n=10; n>-10; n++)
printf("%d",n);
Use code with caution.
MS-ACCESS
Note: The quality of the extracted text might be affected by the image quality and the complexity of the layout.
Some parts of the image were not clear and the text might be incomplete or inaccurate.
convert following image into text if the text in mcqs then extract as mcqs and if in short question form then
extract as short question if long then as long form extract
Here's the text extracted from the image, formatted into MCQs and short answer questions:
C-LANGUAGE
Q.7. Define bug. While writing a program, how many types of bugs can occur? Briefly discuss each of
them.
Q.8. Write down a program that accepts three numbers from the user and displays the largest number.
Q.9. Write down a program in C-Language to display the following series 1 4 9 16 25 using loop structure.
OBJECTIVE
2. The output of a query is in the form of: a. Form b. Report c. Table d. Graph
3. The goal of Normalization is to: a. Increase No. of relations b. Reduce Redundancy c. Get stable data
structure d. Remove constraints
4. Which of the following symbol is not used in ER diagram? a. Rectangle b. Oval c. Diamond d. Triangle
5. Which of the following is also known as control key? a. Sort key b. Composite key c. Primary key d.
Candidate key
6. Which of the following database model is often referred to as an Inverted Tree? a. Hierarchical b. Object
oriented c. Relational d. Network
7. If a file is closed by fclose() function properly, then fclose() function return: a. 1 b. 0 c. -1 d. -1
8. The scope of a variable refers to its: a. Accessibility b. Length c. Data type d. Memory
9. A loop whose condition never becomes false is called: a. Infinite loop b. Continuous loop c. Running loop d.
Fast loop
10. Which of the following is not valid cases statement in switch? a. Case-1: b. Case 'A': c. Case 'A': 97?10:20;
d. Case "A":
11. Conditional operator gives the result for 'a' != 'b' is: a. 10 b. 20 c. 30 d. 107
14. Which of the following is not a reserved word? a. Goto b. While c. For d. Float
15. Which places an executable file in memory? a. Compiler b. Linker c. Loader d. Debugger
Note: The quality of the extracted text might be affected by the image quality and the complexity of the layout.
Some parts of the image were not clear and the text might be incomplete or inaccurate.
convert following image into text if the text in mcqs then extract as mcqs and if in short question form then
extract as short question if long then as long form extract
Here's the text extracted from the image, formatted into MCQs and short answer questions:
C-LANGUAGE
Q.7. Define bug. While writing a program, how many types of bugs can occur? Briefly discuss each of
them.
Q.8. Write down a program that accepts three numbers from the user and displays the largest number.
Q.9. Write down a program in C-Language to display the following series 1 4 9 16 25 using loop structure.
OBJECTIVE
Time: 20 Minutes Marks: 15
2. The output of a query is in the form of: a. Form b. Report c. Table d. Graph
3. The goal of Normalization is to: a. Increase No. of relations b. Reduce Redundancy c. Get stable data
structure d. Remove constraints
4. Which of the following symbol is not used in ER diagram? a. Rectangle b. Oval c. Diamond d. Triangle
5. Which of the following is also known as control key? a. Sort key b. Composite key c. Primary key d.
Candidate key
6. Which of the following database model is often referred to as an Inverted Tree? a. Hierarchical b. Object
oriented c. Relational d. Network
8. The scope of a variable refers to its: a. Accessibility b. Length c. Data type d. Memory
9. A loop whose condition never becomes false is called: a. Infinite loop b. Continuous loop c. Running loop d.
Fast loop
10. Which of the following is not valid cases statement in switch? a. Case-1: b. Case 'A': c. Case 'A': 97?10:20;
d. Case "A":
11. Conditional operator gives the result for 'a' != 'b' is: a. 10 b. 20 c. 30 d. 107
14. Which of the following is not a reserved word? a. Goto b. While c. For d. Float
15. Which places an executable file in memory? a. Compiler b. Linker c. Loader d. Debugger
Note: The quality of the extracted text might be affected by the image quality and the complexity of the layout.
Some parts of the image were not clear and the text might be incomplete or inaccurate.
convert following image into text if the text in mcqs then extract as mcqs and if in short question form then
extract as short question if long then as long form extract
Here's the text extracted from the image, formatted into MCQs and short answer questions:
Section-I (MS-ACCESS)
1. Define Database.
2. From the Information given below, construct a table and find a suitable primary key. PHYSICIAN (Ph
Code, Ph Name, Address, Mobile No, Age)
3. What is an Entity?
Section-I (C-LANGUAGE)
2. Write the following expression in C-language: "Age is between 18 years and 50 years"
C
int a; b;
a=10
b=5
printf("%d"; a +b);
Use code with caution.
C
int x, y, sum;
x=5, y=10;
sum =x+y;
printf ("Sum-%d", Sum);
Use code with caution.
C
if (a>1000 && b<5000)
printf("b is larger");
else
printf("a is larger or equal");
Use code with caution.
Note: The quality of the extracted text might be affected by the image quality and the complexity of the layout.
Some parts of the image were not clear and the text might be incomplete or inaccurate.
convert following image into text if the text in mcqs then extract as mcqs and if in short question form then
extract as short question if long then as long form extract
C-LANGUAGE
Q.7. What are Data Types? Discuss different types of data types and their properties.
Q.8. Write a program in C Language that inputs temperature and displays a message according to the
following data:
Temperature Message Greater than 35 Hot Between 25 and 35 (inclusive) Pleasant day Less than 25 Cool day
Q.9. Write a program that inputs a number and finds its factorial.