Millat Academy Of Science Name Student:
ChowkSarwarShaheed
Attendance sheet Roll No:(____________)
th
Class: 12 Test: Computer CH # 11+13 Total No: 45 Date: 05.03.2024
Q.No.1 Fill the bubbles.(15×01=15)
1. A B C D 2. A B C D 3. A B C D 4. A B C D 5. A B C D 6. A B C D
7. A B C D 8. A B C D 9. A B C D 10. A B C D 11. A B C D 12. A B C D
13 A B C D 14 A B C D 15 A B C D
1 How many basic control structures are there:
A 1 B 2 C 3 D 4
2 The conditional operator is an alternative of:
A If B Simple if-else C Nested if D None
3 ______ is not used for making two way decision:
A If B Conditional C If-else D All
operator
4 In if statement, false is represented by:
A 0 B 1 C 2 D 3
5 Relational operator allow you to _____ numbers.
A Add B Compare C Multiply D Divide
6 Which of the following is an optional part in switch statement:
A Default B Break C Switch D Case
7 What will be the output of (7>8)? Printf (“ABC”):printf(“XYZ”).
A ABC B XYZ C ABCXYZ D All
8 A data file stored in:
A RAM B Hard disk C EEPROM D None
9 In text streem character have correspondence:
A One to One B One to Many C Many to One D All
10 _______ represents the new line marker.
A '\f B '\n' C V D '\o'
11 The data type of file pointer is:
A int B Double C void D File
12 Which of the following function is used to write a character to file:
A fputc () B putc () C fputs () D fgets ()
13 An array subscript should be:
A int B float C double D An array
14 To write a character on a file function takes _______ parameters.
A 0 B 1 C 2 D 3
15 On successfully closing a file, the fclose()returns:
A Null B 0 C 1 D File pointer
Q.No.2 Give Short Answers. (02×07=14)
Draw flowchart for if else ii What is stream?
I
statement.
What is switch statement? Also iv Explain types of stream.
iii
write its syntax.
v Define pointer. vi Define nested if with example.
vii Why break statement is used in switch() structure?
Q.No.3 (02×08=16)
How many types of selection statements are available in C? Explain the
A
difference between them.
Write a program that inputs a number of the week day and show the output
B
the name of week day. Friday is the day one.
Millat Academy Of Science Name Student:
ChowkSarwarShaheed
Attendance sheet Roll No:(____________)
th
Class: 12 Test: Computer CH # 11+13 Total No: 45 Date: 05.03.2024
Q.No.1 Fill the bubbles.(15×01=15)
1. A B C D 2. A B C D 3. A B C D 4. A B C D 5. A B C D 6. A B C D
7. A B C D 8. A B C D 9. A B C D 10. A B C D 11. A B C D 12. A B C D
13 A B C D 14 A B C D 15 A B C D
1 How many basic control structures are there:
A 1 B 2 C 3 D 4
2 The conditional operator is an alternative of:
A If B Simple if-else C Nested if D None
3 ______ is not used for making two way decision:
A If B Conditional C If-else D All
operator
4 In if statement, false is represented by:
A 0 B 1 C 2 D 3
5 Relational operator allow you to _____ numbers.
A Add B Compare C Multiply D Divide
6 Which of the following is an optional part in switch statement:
A Default B Break C Switch D Case
7 What will be the output of (7>8)? Printf (“ABC”):printf(“XYZ”).
A ABC B XYZ C ABCXYZ D All
8 A data file stored in:
A RAM B Hard disk C EEPROM D None
9 In text streem character have correspondence:
A One to One B One to Many C Many to One D All
10 _______ represents the new line marker.
A '\f B '\n' C V D '\o'
11 The data type of file pointer is:
A int B Double C void D File
12 Which of the following function is used to write a character to file:
A fputc () B putc () C fputs () D fgets ()
13 An array subscript should be:
A int B float C double D An array
14 To write a character on a file function takes _______ parameters.
A 0 B 1 C 2 D 3
15 On successfully closing a file, the fclose()returns:
A Null B 0 C 1 D File pointer
Q.No.2 Give Short Answers. (02×07=14)
Draw flowchart for if else ii What is stream?
I
statement.
What is switch statement? Also iv Explain types of stream.
iii
write its syntax.
v Define pointer. vi Define nested if with example.
vii Why break statement is used in switch() structure?
Q.No.3 (02×08=16)
How many types of selection statements are available in C? Explain the
A
difference between them.
Write a program that inputs a number of the week day and show the output
B
the name of week day. Friday is the day one.