#Big fun 1 sample page code#
Identify the suitable code for blank space in the line marked as Statement-5.ĥ5.A striking and surprising debut novel from an exhilarating new voice, Such a Fun Age is a page-turning and big-hearted story about race and privilege, set around a young black babysitter, her well-intentioned employer, and a surprising connection that threatens to undo them both. Identify the suitable code for blank space in line marked as Statement-4.ĥ4. Choose the function name (with argument) that should be used in the blank space of line marked as Statement-3.ĥ3. Identify the missing code for blank space in line marked as Statement-2.ĥ2. Identify the suitable code for blank space in the line marked as Statement-1.ĥ1. Roll_no = int(input(“Enter Roll Number : “)) name = input(“Enter Name : “)Ĭlass = input(“Enter Class : “) section = input(“Enter Section : “)ĥ0. Help him in completing the code which creates the desired CSV File. During examination, he has been assigned an incomplete python code (shown below) to create a CSV File ‘Student.csv’ (content shown below). Rohit, a student of class 12, is learning CSV File Module in Python. This section consists of 6 Questions (50 -55) Attempt any 5 questions. What will be the output of the following code? tup1 = (1,2,3) tup1=3.14 Myfile = open(“Myfile.txt”) data_rec = myfile.readlines() myfile.close()Ĥ9. Assume the content of text file, ‘student.txt’ is:Īrjun Kumar Ismail Khan Joseph B Hanika Kiran What will be the absolute path of the file Syllabus.jpg?Ĥ8. Suppose root directory (School) and present working directory are the same. Consider the following directory structure. Myfile = open(“Myfile.txt”) line_count = 0ĭata = myfile.readlines() for line in data:Ĥ7. Twinkle twinkle little star How I wonder what you are Up above the world so high Like a diamond in the sky Twinkle twinkle little star Myfile = open(“Myfile.txt”) vlist = list(“aeiouAEIOU”) vc=0 Print(x, end=’ ‘) myfunc() print(x, end=’ ‘) What will be the output of the following code? Y = x.count(‘the’) print(y) myfile.close()Ĥ4. Myfile = open(“Myfile.txt”) x = myfile.read() Find the output of the following code:įor x in range(len(Name)): if Name.isupper():Įlif Name.islower(): R=R+Name.upper() elif Name.isdigit():Ĭulture is the widening of the mind and of the spirit. Myfile = open(“Myfile.txt”) record = myfile.read().split() print(len(record)) myfile.close()Ĥ1. Humpty Dumpty sat on a wall Humpty Dumpty had a great fallĪll the king’s horses and all the king’s men Couldn’t put Humpty together again What is the output of the following code snippet? Value = value – N print(value, end=”#”) display(20)ģ8. What will be the output of the following code?ĭef display(N): global value value = 25 if N%7=0: What will be the output of the following code?ĭef my_func(var1=100, var2=200): var1+=10ģ7. Evaluate the following expression and identify the correct answer.ģ6. What will be the output of the following Python code?ģ5. Write appropriate jump statement from the following to obtain the above output.ģ4. When the above mentioned function, display (103) is executed, the output displayed is 190000. A binary file employee.dat has following dataĭef display(eno): f=open(“employee.dat”,”rb”) totSum=0 Identify the missing code in Statement 1.ģ3. Consider the following code written by him. Raghav is trying to write a tuple tup1 = (1,2,3,4,5) on a binary file test.bin. Identify the output of the following Python statements.ģ2.
Identify the output of the following Python statements.ģ1. Identify the output of the following Python statements.ģ0. Identify the output of the following Python statements. Myfile = open(“Myfile.txt”) data = myfile.readlines() print(len(data)) myfile.close()Ģ8. Twinkle twinkle little star How I wonder what you are Up above the world so high Like a diamond in the sky This section consists of 24 Questions (26 to 49). B) The keys of a dictionary can be accessed using values