![sumita arora c class 12 pdf sumita arora c class 12 pdf](https://i.ytimg.com/vi/dP4osIWIO_g/mqdefault.jpg)
Get weekly motivation delivered right to your inbox. Newer Post Older Post Home.Įmail Updates Learning is tough, but rewarding. An assignment operator is used instead of equality operator. Q6: Can a conditional operator replace an if statement always?Īnswer : No in conditional operator usually replaces if statement but not always. Answer : The selection statement conditionally executes another statement or block of statements based on whether a specified expression is true. If the test-condition evaluates to true i. Q2: What is the significance of a null statement? Answer : A null statement is useful where the language requires a statement but the program's logic does not.Īnswer : sequence, selection and iteration Q4: What is the significance of a test-condition in a loop? Answer : The test-condition in a loop decides whether the loop-body will be executed or not based on the truth value. Alternate name of the compound statement is block. What is the alternate name of the compound statement? Answer : The simplest statement is null statement or empty statement.
#Sumita arora c class 12 pdf full
So finally after a full year of intense handwork and lots of taunts from relatives, yo The Path To Discover Excellence. Question 3: What are the two types of else clause in Python? The else clause of a loop is executed when the loop is terminating normally i.Post a Comment. Question 2: What is the difference between determinable loop and non-determinable loop? Value of expression is Good bye! Its iterations depend upon the result of a test-condition, which cannot be determined before-hand. To fill these two requirements simultaneously, empty statement is used.
#Sumita arora c class 12 pdf code
Question 1: What is a statement? What is the significance of an empty statement? Answer: A statement is an instruction given to the computer to perform any kind of action.Īn empty statement is useful in situations where the code requires a statement but does not require logic. Answer: No, Python does not currently support switch or case statements as in other languages. Answer: The pass statement in Python is used when a statement is required syntactically but you do not want any command or code to execute.Īnswer: The syntax for a break statement in Python is as follows : break. Answer: It causes the loop to skip the remainder of its body and immediately retest its condition prior to reiterating. Question What happened when the condition of while loop becomes false? Answer: When the condition becomes false, program control passes to the line immediately following the loop. Answer: The syntax of a while loop in Python programming language is : while expression : statement s. Question Write the syntax of a while loop. Answer: A while loop statement in Python programming language repeatedly executes a target statement as long as a given condition is true. Question 9: Write the output!Īnswer: Value of expression is Good bye. Question 2: What gets printed with the following code? Question 3: What gets printed with the following code? Question 4: What gets printed with given code? Question 5: Which numbers are printed? Question 6: What gets printed? Question 8: Write the syntax of an if….