Pructor Python Quiz 6 by anupmaurya June 12, 2021 written by anupmaurya 0 minutes read 268 September 13, 2024 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 None 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 None 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 None 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 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 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.