Λίστες και Strings σε Python 2.7
Quiz
•
Other
•
10th Grade
•
Practice Problem
•
Hard
Eirini Dioudi
Used 2+ times
FREE Resource
Enhance your content in a minute
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 είναι μια σειρά από χαρακτήρες.
Create a free account and access millions of resources
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
15 questions
Python Basics Quiz
Quiz
•
6th - 10th Grade
10 questions
Accounting 1: T-Accounts Quiz
Quiz
•
9th - 12th Grade
15 questions
Joint Fit Up and Alignment
Quiz
•
10th - 12th Grade
10 questions
ES-Jun 2014 Q41-50
Quiz
•
9th - 12th Grade
16 questions
Interpersonal/Social Skills
Quiz
•
9th - 12th Grade
10 questions
BASIC ACCOUNTING
Quiz
•
10th Grade
10 questions
Hospitality and catering -food poisoning
Quiz
•
4th - 12th Grade
10 questions
4: OCR Psychology Research Methods - planning
Quiz
•
9th - 10th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
Discover more resources for Other
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
20 questions
Cell organelles and functions
Quiz
•
10th Grade
20 questions
Christmas Movie Trivia
Quiz
•
9th - 12th Grade
10 questions
Exploring the Energy Cycle: Photosynthesis and Cellular Respiration
Interactive video
•
6th - 10th Grade
10 questions
Guess the Christmas Movie by the Scene Challenge
Interactive video
•
6th - 10th Grade
