Πώς ορίζεται μια λίστα σε Python 2.7;
Λίστες και Strings σε Python 2.7

Quiz
•
Other
•
10th Grade
•
Hard
Eirini Dioudi
Used 2+ times
FREE Resource
11 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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 είναι μια σειρά από χαρακτήρες.
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
Διατροφη

Quiz
•
10th - 12th Grade
10 questions
Τρόποι Ανάπτυξης Παραγράφου

Quiz
•
10th - 12th Grade
10 questions
Κουίζ για την Αντιμετώπιση Καρδιακής Προσβολής

Quiz
•
10th Grade - University
8 questions
Food waste

Quiz
•
9th - 12th Grade
6 questions
ΕΚΛΟΓΕΣ ΠΕΝΤΑΜΕΛΟΥΣ

Quiz
•
9th - 12th Grade
10 questions
Κατηγορίες Λογισμικού Quiz

Quiz
•
10th Grade
10 questions
Cyberbulling

Quiz
•
10th Grade
10 questions
ΦΑΡΜΑΚΕΙΟ ΠΡΩΤΩΝ ΒΟΗΘΕΙΩΝ

Quiz
•
10th Grade - University
Popular Resources on Quizizz
39 questions
Respect and How to Show It

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
10 questions
Human Body Systems and Functions

Interactive video
•
6th - 8th Grade
20 questions
Multiplication Facts

Quiz
•
3rd Grade
Discover more resources for Other
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
20 questions
Investing

Quiz
•
9th - 12th Grade
20 questions
Insurance

Quiz
•
9th - 12th Grade
20 questions
Common Grammar Mistakes

Quiz
•
7th - 12th Grade
20 questions
Paying for College

Quiz
•
9th - 12th Grade
15 questions
Central Tendency

Quiz
•
9th - 12th Grade
20 questions
Banking

Quiz
•
9th - 12th Grade