Dadakan quiz 1

Quiz
•
Computers
•
12th Grade
•
Hard
Meicank Minang
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 10 pts
Perhatikan code berikut:
df = pd.read_excel('data_penjualan.xlsx')
print(df)
manakah code yang harus ditambahkan, agar code tersebut bisa bekerja?
import pandas as pd
dfpTahun = dfd.copy()
dfd = df[['Wilayah', ' Tanggal Pesanan','Jumlah', 'Harga']]
summary_data = dfpTahun.groupby(['Wilayah','Tahun'])['TPenerimaan'].sum()
2.
FILL IN THE BLANK QUESTION
1 min • 10 pts
Sintaks apa yang harus ditambahkan untuk menampilkan 5 data awal, pada code python berikut ini:
topdata = dframe._ _ _ _ _ _
3.
MULTIPLE CHOICE QUESTION
1 min • 10 pts
Manakah variabel dalam code berikut ini?
dfdata1 = dfHitung.copy()
dfHitung
copy()
dfdata1
tidak ada variabel
4.
FILL IN THE BLANK QUESTION
1 min • 10 pts
Jelaskan kodingan berikut ini:
dfwil['Wilayah_Initials'] = dfwil['Wilayah'].apply(lambda x: ''.join(word[0] for word in x.split()))
5.
MULTIPLE CHOICE QUESTION
1 min • 10 pts
Bagaimana caranya menampilkan judul grafik "Total Penjualan untuk setiap Wilayah"?
plt.title('Total Penjualan untuk setiap Wilayah')
plt.xlabel('Total Penjualan untuk setiap Wilayah')
plt.ylabel('Total Penjualan untuk setiap Wilayah')
plt.show('Total Penjualan untuk setiap Wilayah')
6.
FILL IN THE BLANK QUESTION
1 min • 10 pts
Apa yang akan dihasilkan dari code berikut:
dfwil['TPenerimaan'] = dfwil['Jumlah']*dfwil['Harga']
7.
FILL IN THE BLANK QUESTION
1 min • 10 pts
Code berikut, akan mengubah format tanggal menjadi tahun. Bisakah anda memperbaiki code berikut ini?
dfTahun['Tanggal Pesanan']=pd_ _ _ _ _ _ _ _ _ _ _ _(dfTahun['Tanggal Pesanan'])
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Bimtek Kelembagaan

Quiz
•
1st Grade - University
12 questions
Hour of Code

Quiz
•
6th - 12th Grade
15 questions
AQA Computer Science GCSE - 3.1 Fundamentals of algorithms

Quiz
•
10th - 12th Grade
10 questions
ASCII + Binary Representations

Quiz
•
5th - 12th Grade
15 questions
PYTHON PROGRAMMING

Quiz
•
11th - 12th Grade
10 questions
Coding a Game Quiz p4

Quiz
•
12th Grade
12 questions
Python Gr 12

Quiz
•
11th - 12th Grade
12 questions
Dataframe

Quiz
•
10th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade