Pructor Python Quiz 6 by anupmaurya June 12, 2021 written by anupmaurya 0 comment August 11, 2022 Welcome to your Pructor Python Quiz 6 Name Email In python, a) Indentation indicates a block of code. b) def keyword is used to indicate starting of a function. c) A function can call other functions. d) All of the above Assume that the "min" function computes the minimum of two values, and "max" function computes the maximum of two values. Let x1, x2 be 2 distinct integers. What can you say about the following program (using python 3.X version): y1 = min(x1, x2) y2 = max(y1, x1) a) If x1 is smaller than x2, then y1 and y2 will be same. b) If x1 is greater than x2, than y1 wll be equal to x2. c) If we further run y3 = max(y1,y2) , then y3 will always be equal to x1. d) All of the above Which of the below statement/s is/are true for global keyword in python ? a) It is used to read global variables inside a function. b) if we want to use value of global variable inside a function, we will have to use global keyword. c) A variable name inside a function can be same as variable name of a global variable. d) All of the above What will be the output of the following code:- def keywordExample(x=1, y=2, z=4):sum = x+ymin = sum - zprint (min)keywordExample(y=8,x=4,z=y) Which of the following statement is false for string in python: a) They represent sequence of characters b) strings are mutable c) Backslash can be used to escape quote d) All of the above Time's up Share 0 FacebookTwitterLinkedinRedditWhatsappTelegramEmail anupmaurya Hey there, My name is Anup Maurya. I was born with love with programming and works at TCS. One of best global (IT) services and consulting company as System Administrator . I also love graphics designing. It's my pleasure to have you here. previous post Pructor Quiz 7 next post Pructor Python Quiz 7 Leave a Comment Cancel Reply Save my name, email, and website in this browser for the next time I comment. * By using this form you agree with the storage and handling of your data by this website.