COMP1010 Week 8 Quiz

COMP1010 Week 8 Quiz

University

16 Qs

quiz-placeholder

Similar activities

Structures and union

Structures and union

University

15 Qs

Understanding Python Functions

Understanding Python Functions

University

20 Qs

Unit 10 - Client - Server model

Unit 10 - Client - Server model

12th Grade - University

20 Qs

Web Development Quiz

Web Development Quiz

University

19 Qs

Python revision

Python revision

10th Grade - University

15 Qs

revision

revision

University

17 Qs

AI BootCamp: 2024 Edition- Session 1

AI BootCamp: 2024 Edition- Session 1

University

20 Qs

Python 101

Python 101

University

15 Qs

COMP1010 Week 8 Quiz

COMP1010 Week 8 Quiz

Assessment

Passage

Computers

University

Hard

Created by

Ethan Ryoo

Used 4+ times

FREE Resource

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

img

label

h1

input submit

input text

link

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.

CLASSIFICATION 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

Account usernames and passwords

A .json file

Storing shopping cart info for a guest user

Info about anonymous posts on a public forum

Browser cookies

Databases used to look up user queries

Customisable preferences for logged-out users

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?