You are on page 1of 4

Class XII

Computer Science
1. Assignment Number 11

Write your Name, Class, Section, Session, at the Top of the Page
Open a Word file and WRITE each Answer from a New Line
DO NOT write/paste-screen-shot of the Question or the Code
SAVE the final Word file as PDF and SEND the PDF file

Your Answer Sheet submitted should look like the one shown below:
Assignment-11
Computer Science
Name: Write your Name here
Class: Write your Class here
Sec: Write your Section here
Session: Write your Session here

Ans1. Write your Answer here

Ans2. Write your Answer here

Ans3. Write your Answer here

….

Ans10. Write your Answer here

1. Find the output of the following code:


2. Name any two of the concepts that are used in the above program
with respect to function arguments, during the test1 function call.
3. Answer in a sentence, what will happen if the two arguments are
interchanged in the above code i.e. if the function is called as
result=test1( z=2, 5 )?

4. Find the output of the following code:

5. Find the output of the following code:

6. Find the output of the following code:


7. Find the output of the following code:

8. Find the output of the following code (the order of key:value pairs
will not matter in the answer):

9. Find the output of the following code:


10. There are two stacks S1 and S2. Initially both the stacks are empty.
Next the following set of operations are done on both the stacks in a
consecutive manner. Write the final content of stack S1 & stack S2:
S1.push(3)
S2.push(7)
S2.push(4)
S2.push(6)
S1.push(2)
S1.push( S2.pop( ) )
x = S2.pop( )
S1.push(6)
S1.push( S2.pop( ) )
S2.push( S1.pop( ) )
y = S1.pop( )
S2.push( S1.pop( ) )
Indicate the top end for each stack, when writing the output.

2. Note:
• You are requested to submit neat work.
• Those who submit pdf must ensure that an assignment is a single pdf and
pages are not submitted as separate pdfs.
• Marks will not be awarded if an image or a PDF of textbook pages is sent as
a submission.
• Copying and pasting of someone else’s work will be dealt with firmly.
• For evaluation of the assignments, pupils are requested to complete their
work and submit their responses through SKOLARO only.

3. Date of Assignment Upload and Submission:


Date of Upload: 03/8/2020
Due Date of Submission: 10/8/2020

You might also like