Skip to content

Check On learning

--- primaryColor: '#FF851B' secondaryColor: '#DDDDDD' textColor: black --- ### LSA 1-1 What data type is the following: ```x = 5 ```? - [ ] Float - [ ] String - [x] int ### LSA 1-2 What data type is the following: ```string = 6 ```? - [ ] Float - [ ] String - [x] int ### LSA 2-1 is the following value a proper Boolean: ```true``` - [x] True - [ ] False ### LSA 2-2 is the following value a boolean ```0``` - [ ] True - [x] False ### LSA 3-1 is the following value a string: ```'3.0'``` - [x] True - [ ] False ### LSA 3-2 is this a proper string assignment: ```str = 'hello'``` - [ ] True - [x] False ### LSA 4-1 by default python uses what encoding scheme? - [ ] Enicode - [ ] uncode - [x] unicode - [ ] uricode ### LSA 4-2 what is the unicode value for 'd'? - [ ] 95 - [ ] 105 - [ ] 68 - [x] 100 ### LSA 5-1 this: ```a,b,c = 1,2,3``` would be an example of what princple? - [x] dynamic variable declaration - [ ] runtime variable definations - [ ] multi-level assignment - [ ] dynamic naming ### LSA 5-2 python uses _____ _____ ____ reference? - [x] pass by object - [ ] pass by value - [ ] pass by pass - [ ] pass by reference ### LSA 6-1 which function will convert ```'101'``` to a integer? - [x] int() - [ ] to_int() - [ ] num() - [ ] make_integer() ### LSA 6-2 which function would convert a number to base 16? - [x] hex() - [ ] num_to_hex() - [ ] to_base_16() - [ ] to_16() ### LSA 7-1 what would be the value of ``` 2 // 4```? - [x] 0 - [ ] 1 - [ ] 2 - [ ] -2 ### LSA 7-2 what would be the value of ``` 3 % 4```? - [x] 3 - [ ] 1 - [ ] 2 - [ ] -1 ### LSA 8-1 Select all keywords from below: - [x] None - [x] import - [x] global - [x] False ### LSA 8-2 Select non-keywords from below: - [x] facts - [x] include - [] float - [x] true ### LSA 9-1 Select which method would create a int that equals 6? - [ ] ```6 = x``` - [x] ```y=6``` - [ ] ```True = 6``` - [ ] ```z = six``` ### LSA 9-2 Select which method would create a string that equals four? - [ ] ```'four' = x``` - [ ] ```y=4``` - [ ] ```True = four``` - [x] ```z = 'four'```