0% found this document useful (0 votes)
26 views2 pages

Chap#11 14

The document contains a test paper on C programming with questions regarding control structures, functions, arrays and files. It has multiple choice questions, short answer questions and program writing questions to test the concepts discussed in chapters 11 and 13.

Uploaded by

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

Chap#11 14

The document contains a test paper on C programming with questions regarding control structures, functions, arrays and files. It has multiple choice questions, short answer questions and program writing questions to test the concepts discussed in chapters 11 and 13.

Uploaded by

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

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.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy