Save
Upgrade to remove ads
Busy. Please wait.
Log in with Clever
or

show password
Forgot Password?

Don't have an account?  Sign up 
Sign up using Clever
or

Username is available taken
show password


Make sure to remember your password. If you forget it there is no way for StudyStack to send you a reset link. You would need to create a new account.
Your email address is only used to allow you to reset your password. See our Privacy Policy and Terms of Service.


Already a StudyStack user? Log In

Reset Password
Enter the associated with your account, and we'll email you a link to reset your password.
focusNode
Didn't know it?
click below
 
Knew it?
click below
Don't Know
Remaining cards (0)
Know
0:00
Embed Code - If you would like this activity on your web page, copy the script below and paste it into your web page.

  Normal Size     Small Size show me how

IT0011

Integrative Programming and Technologies

QuestionAnswer
Tuples are immutable. ✅ True
a tuple is a collection which is ordered and unchangeable. ✅ True
tuples are mutable. ✅ False
List is a collection which is ordered and unchangeable. ✅ False
A dictionary is a collection which is unordered, changeable and indexed. ✅ False
In Python, sets are written with curly brackets. ✅ True
The del keyword will delete the set completely. ✅ True
The copy() method returns a copy of the dictionary. ✅ True
Sets are unordered. ✅ True
Given the code: aTuple = (10,20,30,40,50); print(aTuple[2:4]) ✅ (30, 40)
Given the code: aTuple = (10,20,30,40,50); print(aTuple[:4]) ✅ (10, 20, 30, 40)
Given the code: aTuple = (100,200,300,400,500); print(aTuple[-3:-1]) ✅ (300, 400)
Given the code: x = list(('abc', 23, (78,16), 3.14, [1,2,3,4])); print(x[-1][-2]) ✅ 3
Given the code: nums = set([1,1,2,3,3,3,4,4]); print(len(nums)) ✅ 4
Given the code: d = {"john":40, "peter":45}; "john" in d ✅ True
Which of the following is incorrect for t = (1,2,4,3)? ✅ t[3] = 45
What method is used to determine how many items a dictionary has? ✅ len()
What method returns a list of all values in a dictionary? ✅ values()
Which of these about a set is NOT true? ✅ Allows duplicate values
When slicing a string the return value is a range of characters ✅ True
An example of an illegal character is a double quote inside a string that is surrounded by double quotes ✅ True
Given the code: a = “Learning, Python!” print(a[2:6]) What will be the output? ✅ arni
The lower() method removes any whitespace from the beginning or the end ✅ False
Given the code: a = ‘the quick brown fox’ print(‘fox’ in a) What will be the output? ✅ true
Given the code: a = “Learning, Python!” print(a.split(“,”)) What will be the output? ✅ ['Learning', ' Python!']
Given the code: a = ‘the quick brown fox’ print(a.upper()) What will be the output? ✅ THE QUICK BROWN FOX
The strip() method removes any whitespace from the beginning or the end ✅ True
Given the code: b = “Learning” print(len(b)) What will be the output? ✅ 8
When slicing a string the return value is a range of data types ✅ False
To open a file in binary format, add “a” to the mode parameter ✅ False
The writelines() method is used to save the contents of a list object in a file ✅ True
The readline() method reads the characters starting from the current reading position up to a newline character ✅ True
The read(chars) method reads the specified number of characters starting from the current position ✅ True
Which of the following is an incorrect file handling mode in Python? ✅ rz
Which of the following is used to open a file for both writing and reading? ✅ r+
“rb” mode opens the file in binary format for writing ✅ False
“wb” mode opens the file in binary format for reading ✅ False
A file method used to read characters up to a newline character ✅ readline()
Which of the following is used to open a file for appending? ✅ a
Created by: saiii
Popular Computers sets

 

 



Voices

Use these flashcards to help memorize information. Look at the large card and try to recall what is on the other side. Then click the card to flip it. If you knew the answer, click the green Know box. Otherwise, click the red Don't know box.

When you've placed seven or more cards in the Don't know box, click "retry" to try those cards again.

If you've accidentally put the card in the wrong box, just click on the card to take it out of the box.

You can also use your keyboard to move the cards as follows:

If you are logged in to your account, this website will remember which cards you know and don't know so that they are in the same box the next time you log in.

When you need a break, try one of the other activities listed below the flashcards like Matching, Snowman, or Hungry Bug. Although it may feel like you're playing a game, your brain is still making more connections with the information to help you out.

To see how well you know the information, try the Quiz or Test activity.

Pass complete!
"Know" box contains:
Time elapsed:
Retries:
restart all cards