CSE 1010 Study Guide - Final Guide: Init, Local Variable, Multiple Choice

325 views4 pages
jadetortoise401 and 55 others unlocked
CSE 1010 Full Course Notes
84
CSE 1010 Full Course Notes
Verified Note
84 documents

Document Summary

This statement creates a new instance of the class and assigns this object to the local variable x: a function defined in a class definition. The answer instances: this method returns a value for the given key in a dictionary - if the key does not exist then returns the default name in the method. The answer get() method dictionaryname. get(key, default= none: the creation of an instance of a class. Instantiation: in a dictionary, returns the number of stored entries - the number of (key, value) pairs. The answer len(dictionaryname: a variable that is defined inside a method and belongs only to the current instance of a class. List has numbers as indexes whereas dictionary indexes are called key: a user-defined prototype for an object that defines a set of attributes that characterize any object of the class. Class: in a dictionary, this returns true if key k exits and returns false if the key k does not exists.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers

Related Documents

Related Questions