Prutor Python Quiz 3 by anupmaurya June 13, 2021 written by anupmaurya 0 minutes read 289 Welcome to your Prutor Python Quiz 3 1. 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'} 1 out of 5 2. 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 2 out of 5 3. 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’ 3 out of 5 4. What will be the output of the following code? print( (3 1)) a) Flase b) True c) Run-time error d) None of these 4 out of 5 5. 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 5 out of 5 Time's upTime is Up! 0 comment 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 Save my name, email, and website in this browser for the next time I comment.