Search Header Logo

COMP1010 Week 8 Quiz

Authored by Ethan Ryoo

Computers

University

Used 4+ times

COMP1010 Week 8 Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

16 questions

Show all answers

1.

LABELLING QUESTION

1 min • 1 pt

Label the html elements used on this login website. (Apologies for any alignment issues)

f
g
h
e
b

title

h1

input submit

input text

link

img

label

p

2.

MULTIPLE SELECT QUESTION

1 min • 1 pt

Media Image

Complete the following sentence. There may be more than one correct option. This webpage...

ONLY uses HTML

uses BOTH HTML and CSS

MUST be linked to a .css file

MIGHT be linked to a .css file

3.

MULTIPLE SELECT QUESTION

1 min • 1 pt

Media Image

Which CSS properties were styled for this webpage? Choose all that apply.

border

text-align

margin

padding

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which python library allows you to communicate with APIs?

json

requests

flask

pyhtml

5.

CATEGORIZE QUESTION

2 mins • 1 pt

Determine whether each option involves (primarily) client-side or server-side data.

Groups:

(a) Client-side data

,

(b) Server-side data

Browser cookies

Databases used to look up user queries

Storing shopping cart info for a guest user

Info about anonymous posts on a public forum

Account usernames and passwords

Customisable preferences for logged-out users

A .json file

A browser remembers a user and automatically logs them in

6.

DROPDOWN QUESTION

2 mins • 1 pt

Media Image

Compared to one another, ​`func_a()` and `func_b()` print out (a)   numbers when run. Once running to completion, the final value of `i` in `func_a()` is ​ (b)   the final value of `i` in `func_b()`.

the same
different
lower than
higher than
the same as

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

Assume that the file `data.json` exists. You would like to store `my_data` inside this file. Which statement is true about this code?

It executes with no errors

Line 8 should use json.dumps not json.dump

There is an omission on line 7

It is not best practice to use with/as to open files

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?