
Λίστες και Strings σε Python 2.7
Authored by Eirini Dioudi
Other
10th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
11 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Πώς ορίζεται μια λίστα σε Python 2.7;
my_list = '1, 2, 3'
my_list = {1, 2, 3}
my_list = (1, 2, 3)
my_list = [1, 2, 3]
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Πώς μπορούμε να έχουμε πρόσβαση σε ένα συγκεκριμένο στοιχείο μιας λίστας στην Python 2.7;
my_list{index}
my_list.index
my_list(index)
my_list[index]
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Πώς ορίζεται ένα string σε Python 2.7;
Ένα string σε Python 2.7 ορίζεται με τη χρήση αγκυλών
Ένα string σε Python 2.7 ορίζεται με τη χρήση αποστρόφων
Ένα string σε Python 2.7 ορίζεται με τη χρήση εισαγωγικών, είτε μονά ('example') είτε διπλά ("example").
Ένα string σε Python 2.7 ορίζεται με τη χρήση αριθμών
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Πώς μπορούμε να συνενώσουμε δύο strings σε Python 2.7;
string1 - string2
string1 / string2
string1 + string2
string1 * string2
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Ποια είναι η σύνταξη για να προσθέσουμε ένα νέο στοιχείο σε μια λίστα στην Python 2.7;
list_name.extend(new_element)
list_name.append(new_element)
list_name.add(new_element)
list_name.insert(new_element)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Πώς μπορούμε να αλλάξουμε ένα συγκεκριμένο στοιχείο σε μια λίστα στην Python 2.7;
list_name[index] == new_value
list_name.add(index, new_value)
list_name.insert(index, new_value)
list_name[index] = new_value
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Ποια είναι η διαφορά μεταξύ λίστας και string στην Python 2.7;
Στην Python 2.7 δεν υπάρχει διαφορά μεταξύ λίστας και string.
Η διαφορά είναι ότι μια λίστα μπορεί να περιέχει μόνο ένα στοιχείο, ενώ ένα string μπορεί να περιέχει πολλούς χαρακτήρες.
Η διαφορά είναι ότι μια λίστα μπορεί να περιέχει μόνο αριθμούς, ενώ ένα string μπορεί να περιέχει μόνο χαρακτήρες.
Η διαφορά είναι ότι μια λίστα είναι μια συλλογή από αντικείμενα διαφορετικών τύπων, ενώ ένα string είναι μια σειρά από χαρακτήρες.
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
12 questions
Computer Science Level 1 - Blocks with VEXcode VR Course Unit 2
Quiz
•
5th - 12th Grade
10 questions
Public Library Resources
Quiz
•
9th - 12th Grade
15 questions
Get Ready for Science
Quiz
•
KG - 12th Grade
13 questions
Housings in Hong Kong
Quiz
•
KG - Professional Dev...
13 questions
Public Speaking Principles
Quiz
•
10th Grade
16 questions
Makbet - treść
Quiz
•
10th - 12th Grade
10 questions
Parts of Speech
Quiz
•
3rd - 12th Grade
12 questions
Internal and external Communication Chapter Summary
Quiz
•
10th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Other
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
15 questions
Main Idea and Supporting Details.
Quiz
•
4th - 11th Grade
20 questions
Cell Organelles
Quiz
•
10th Grade
25 questions
Complementary and Supplementary Angles
Quiz
•
7th - 10th Grade
12 questions
Add and Subtract Polynomials
Quiz
•
9th - 12th Grade
13 questions
Model Exponential Growth and Decay Scenarios
Quiz
•
9th - 12th Grade
10 questions
Exploring the Layers of the Earth
Interactive video
•
6th - 10th Grade