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

Computer 10th t.2 T.S

The document is a computer science examination paper from Crescent Science Academy, containing multiple-choice questions, short questions, and long questions related to programming concepts such as the printf function, format specifiers, and input functions like scanf and getch. It tests students' understanding of escape sequences, statement terminators, and the use of different functions in programming. The paper is structured to assess both theoretical knowledge and practical application of programming principles.

Uploaded by

jeshibaba
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)
13 views2 pages

Computer 10th t.2 T.S

The document is a computer science examination paper from Crescent Science Academy, containing multiple-choice questions, short questions, and long questions related to programming concepts such as the printf function, format specifiers, and input functions like scanf and getch. It tests students' understanding of escape sequences, statement terminators, and the use of different functions in programming. The paper is structured to assess both theoretical knowledge and practical application of programming principles.

Uploaded by

jeshibaba
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

CRESCENT SCIENCE ACADEMY

282B HAMZA TOWN PHASE 2, LAHORE 03094711513


NAME_____________ ROLL NO____________

Computer
Q#1 MCQ's

1. Name of printf function comes from____

o Print documented o Print formatted o Print written o Print operation


2. Format specifier are preceded by _____ sign

o ! o & o % o =
3. ____ takes the input from user in form of variables

o getch o sacnf o printf o tab


4. Esacpe sequence \n specifies movement of cursor to start the ______

o Next page o Next word o Next line o all


5. A statement terminator is identifier for ______

o compiler o terminator o constants o editor


6. Format specifier int has______ sign

o %d o %i o both o none
7. When we use %f to display a float value, it displays ____ digits

o 4 o 5 o 6 o 7
8. First part inside the double quotes is list of _____

o variables o Format specifiers o constant o all


9. The common mistake to forget & sign is in ____ function

o printf o getch o New line o Scanf


10. To use a function getch() we include a library _____ in header section

o Conio.h o Stdio.h o Vdio.h o Hptic.h

SHORT QUESTIONS
Q#2

i. What is printf() ?
ii. What is format specifier. Also write its examples?
iii. What are uses of format specifiers?
iv. What are the parts of scanf() function?

Q#3

i. Can we take multiple inputs using a single scanf function?


ii. Explain getch function with an example?
iii. Differentiate between new line and tab function?
iv. What happens in absence of escape sequence?
Q#4

i. Write formation of escape sequence?


ii. What is function of statement terminator?
iii. What is difference between reading a character using scanf and getch function?
iv. How does programming language provides instructions to handle data?

LONG QUESTIONS
Q#5

a. Write a detailed note on escape sequence?


b. Write a note with examples on format specifiers?

You might also like