

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
BIG FUN 1 SAMPLE PAGE CODE
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). Bonusly's Slack integration was the right fit for our team: it meets our employees where they already are, and they don't have to use a separate system to give recognition.”Īlicia del Carmen Raymond, Sr.B) The keys of a dictionary can be accessed using values We looked at some other solutions but knew that in order for this to be successful, it had to be easy to use. “Bonusly has really helped us build a culture of recognition.
BIG FUN 1 SAMPLE PAGE HOW TO
We've had lots of leaders reach out in the last month for advice on how to operate as a fully distributed company and Bonusly is one of the tools I recommend - valuable in all circumstances, but particularly in this physically distant time.”
