Prutor Python Quiz 3 by anupmaurya June 13, 2021 written by anupmaurya 0 minutes read 342 Welcome to your Prutor Python Quiz 3 If A=set(‘python’)B=set(‘programming’)Then what will be the output of print(A-B) ?Note :- The Order of output may change. a) {'m', 'r', 'i'} b) {'m', 'r', 'g', 'a', 'i'} c) {'h', 'y', 't'} d) {'y', 'h', 't', 'a'} None What will be the outcome of the following code? count=40print(count>=30 and count<39) a) True b) False c) Error d) None of the Above None If we have a list as : names=[‘abhay’, ‘mahesh’, ‘prashant’, ‘sandeep’]then what does the following statement do: ‘rakesh’ in names a) checks if ‘rakesh’ is there in names b) deletes ‘rakesh’ from names c) add ‘raksesh’ to names d) append names with ‘rakesh’ None What will be the output of the following code? print( (3 1)) a) Flase b) True c) Run-time error d) None of these None In Python ‘And’ and ‘Or’ operators are also called: a) Short circuit operators b) Logical operators c) Both A and B d) None of the above None Time's up 0 FacebookTwitterPinterestEmail anupmaurya "Hi there, My name is Anup Maurya. I have a passion for programming and previously worked at TCS, one of the best global IT services and consulting companies, as a System Administrator. I also enjoy graphic design. It's a pleasure to have you here." previous post Pructor Python Quiz 7 next post Prutor Python Quiz 2 Leave a Comment Cancel Reply