in Education by
Q. 3 Answer the given questions (4 x 2 = 8 marks) Find the output for the following. a) x=4 y=x-1 x=2 print(x, y) Select the correct answer from above options

1 Answer

0 votes
by
 
Best answer
2, 3 x has been mutated to 2 while y still refers to the old value of x – 1

Related questions

0 votes
    Find the output for the following a) X=4 y=x+1 print(x, y) Select the correct answer from above options...
asked Dec 24, 2021 in Education by JackTerrance
0 votes
    HIVIL lags! Q.8- Application based questions:- (2) a) Subhash wants to highlight the names of students who have ... type must she use? Select the correct answer from above options...
asked Dec 10, 2021 in Education by JackTerrance
0 votes
    Note: Answer the following questions on the question paper. (05) Q.1 (a)Fill in the blanks, To exit from ... name of memory location Select the correct answer from above options...
asked Dec 21, 2021 in Education by JackTerrance
0 votes
    Write a program in java to display the given pattern. 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 Please ... as brainlist Please answer it very fast Select the correct answer from above options...
asked Dec 21, 2021 in Education by JackTerrance
0 votes
    Answer the following questions: 1. What is data type? Give an example. 2. What is the difference between 19/6 & 19/60. ... a++ & a+ =1. Select the correct answer from above options...
asked Dec 13, 2021 in Education by JackTerrance
0 votes
    e)What will be the output of the following code? (2) x,y=4,8 z=x/y*y print(z) Select the correct answer from above options...
asked Dec 19, 2021 in Education by JackTerrance
0 votes
    do you think the following two expression are the same if yes write the output if not justify your answer X=int(22/7) X=(22.0/7) Select the correct answer from above options...
asked Dec 13, 2021 in Education by JackTerrance
0 votes
    following Python Write the output for the Codes i A : 41:100, 2:200, 3: 300, 4:400,5:5003 Print A items ( ... Keys () Print A values ) Select the correct answer from above options...
asked Dec 21, 2021 in Education by JackTerrance
0 votes
    can any teacher increase students marks if they failed in science or matha exam because of 3-4 marks in final in kv school?? Select the correct answer from above options...
asked Dec 25, 2021 in Education by JackTerrance
0 votes
    dues. Find the output of following A. X = 3 . Y = x + 2 x+ =y print (x,y) a = 5 b = 2xa a+ = a+b b* = a+b print (a,b) ) Select the correct answer from above options...
asked Dec 27, 2021 in Education by JackTerrance
0 votes
    dues. Find the output of following A. X = 3 . Y = x + 2 x+ =y print (x,y) a = 5 b = 2xa a+ = a+b b* = a+b print (a,b) ) Select the correct answer from above options...
asked Dec 26, 2021 in Education by JackTerrance
0 votes
    >>> list(range(0, -9,-1)) will print [-1, -2, -3, -4,-5, -6, -7, -8) [0,-1, -2, -3, -4,-5, -6, -7, -8 ... [0,-1, -2, -3, -4,-5, -6, -7] Select the correct answer from above options...
asked Dec 28, 2021 in Education by JackTerrance
0 votes
    A random variable X has the following probability distribution : X: 1 2 3 4 5 6 7 8 P(X): 0.15 0.23 0.12 0.10 0.20 0.08 0.07 0.08 for the events E=[X is a prime number] F={X...
asked Nov 16, 2021 in Education by JackTerrance
...