B01F-2015D – Computer Sir Ki Class

Login


Lost your password?

Don't have an account ?
Register (It's FREE) ×
  

Login
[lwa]



Exam Questions-CBSE12D-2015-B01F #PYTHON#6516    siteicon   siteicon  

Problem Statement - B01F-2015D

What are the possible outcome(s) executed from the following code? Also specify the maximum and minimum values that can be assigned to variable NUMBER.

STRING="CBSEONLINE"
NUMBER=random.randint(0,3)
N=9
while STRING[N]!='L':
    print STRING[N]+STRING[NUMBER]+'#',
    NUMBER=NUMBER + 1
    N=Nl
(i)         (ii)        (iii)       (iv)
ES#NE#IO#   LE#NO#ON#   NS#IE#LO#   EC#NB#IS#

Solution

TC++ #6516

(i) ES#NE#IO#
(iv) EC#NB#IS#
Minimum value of NUMBER = 0
Maximum value of NUMBER = 3


Share

CSKC| Created: 12-Jan-2019 | Updated: 12-Jan-2019|CBSE12D-2015









Back