Nerdii Test Author: Hassaan Riaz Published on: August 31, 2020 Published in: Welcome to your Nerdii Test Email Phone Please select the language in which you want to write code for this test? Html Jquery Php Python Reactjs Which method of the Class.class is used to determine the name of a class represented by the class object as a String? getClass() intern() getName() toString() In which process, a local variable has the same name as one of the instance variables? Serialization Variable Shadowing Abstraction Multi-threading What do you mean by nameless objects? An object created by using the new keyword. An object of a superclass created in the subclass. An object without having any name but having a reference. An object that has no reference. What is meant by the classes and objects that dependents on each other? Tight Coupling Cohesion Loose Coupling None of the above What is “closure” in javascript? Provide an example? Given a string s = “Welcome”, which of the following code is incorrect? print s[0] print s.lower() s[1] = ‘r’ print s.strip() What will be the output of the following code?var x = { foo : 1}; var output = (function() { delete x.foo; return x.foo; })(); console.log(output); What will be the output of the following Python code?class father: def __init__(self, param): self.o1 = paramclass child(father): def __init__(self, param): self.o2 = param>>>obj = child(22)>>>print "%d %d" % (obj.o1, obj.o2) None None None 22 22 None Error is generated What will be the output of the following Python code?example = "snow worldexample[3] = 's'print example snow snow world Error Snos World Time is Up! Post navigation Leave a comment Cancel reply Save my name, email, and website in this browser for the next time I comment.