0
0
Tableaubi_tool~10 mins

Device-specific layouts in Tableau - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to add a device-specific layout in Tableau.

Tableau
dashboard = TableauDashboard()
dashboard.[1]('Phone')
Drag options to blanks, or click blank then click option'
Aset_layout
Badd_device_layout
Cadd_layout
Dcreate_layout
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'create_layout' instead of 'add_layout'.
Using 'set_layout' which is not a valid Tableau method.
2fill in blank
medium

Complete the code to specify the device type for the layout.

Tableau
dashboard.add_layout(device_type=[1])
Drag options to blanks, or click blank then click option'
A'Tablet'
B'Laptop'
C'Desktop'
D'Phone'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'Tablet' or 'Desktop' instead of 'Phone'.
Omitting the quotes around the device type string.
3fill in blank
hard

Fix the error in the code to correctly add a device-specific layout for tablet.

Tableau
dashboard.add_layout(device_type=[1])
Drag options to blanks, or click blank then click option'
A'Tablet'
B"Tablet"
CTablet
Dtablet
Attempts:
3 left
💡 Hint
Common Mistakes
Using unquoted device type like Tablet or tablet.
Using lowercase 'tablet' which Tableau does not recognize.
4fill in blank
hard

Fill both blanks to set the layout size and device type for a phone layout.

Tableau
dashboard.add_layout(device_type=[1], size=[2])
Drag options to blanks, or click blank then click option'
A'Phone'
B'Tablet'
C(375, 667)
D(768, 1024)
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing phone and tablet device types.
Using tablet size for phone layout.
5fill in blank
hard

Fill all three blanks to create a device-specific layout for desktop with custom width and height.

Tableau
dashboard.add_layout(device_type=[1], width=[2], height=[3])
Drag options to blanks, or click blank then click option'
A'Desktop'
B1200
C800
D'Phone'
Attempts:
3 left
💡 Hint
Common Mistakes
Using phone device type instead of desktop.
Using strings for width and height instead of numbers.