Font size
WorksheetsHTML/CSS + Python
Total questions: 101
Worksheet time: 2hrs 41mins
placed within his webpage?
the main heading in a web document?
______ is used to create electronic documents (called pages) that are displayed on the World Wide Web. Every web page you see on the Internet is written using one version of _____ code or another.
JPEG
CSS
HTML
A ___________ is an icon, graphic, or text that links to another file or object. These are what allow web pages to connect to other web pages
hyperlink
HTML Tags
browser
<br>
A __________ is a protection for any published work that helps to prevent that work from being used without prior authorization.
Firewall
HTML
Copyright
CSS Declaration
The _______ _______is used to change the appearance and position of various elements on a web page.
<style> tag
<img> tag
URL link
<p> tag
The ______ ______ is an inline element used to designate a holding space for linked images.
<br> tag
<h1> tag
<img> tag
<ol> tag
The _____ ______ is a block element used to designate a list that is either numbered or alphabetical.
<tr> tag
<ol> tag
<ul> tag
<td> tag
The ______ ______ is a block element used to designate a list that is bulleted.
<ul> tag
<h2> tag
<hr> tag
<td> tag
RGB
Short for router graphics bitmap, RGB is a process for creating vector graphics.
Short for red, gray, black, RGB is a method of monitoring color on a server website.
Short for random gigabyte burnout, RGB is process used to maintain data on a computer screen.
Short for red, green, blue, RGB is a method of creating colors from the colors of red, green, and blue.
Within an HTML tag, an _________ dictates certain aspects of an element. It is made up of a name and value pair.
attribute
properties
color
class
<h1> to <h6> tags
are styling tags used to designate HTML table attributes.
are line elements for creating different sizes of lines.
are block elements used to designate headings of both different sizes and importance.
are color elements used to style a CSS page.
<p> tag
is a block element used to designate a paragraph.
is an inline element used to create a new page.
is a block element used to post a picture on a web page.
is an inline element used to style with the color purple.
Which is correct CSS syntax?
{body; colour = black;}
body: colour = black
body {
colour : black;}
{body colour is black}
What symbols go around the properties for each CSS selector?
< >
[ ]
{ }
( )
p {color: red;}
print("Hello world!\nHello world!")
Hello world!
print(Hello world!)
What syntax can you use to insert a line break between strings so that they appear over new lines?
/
\n
\l
n
print("Hello world!" * 2)
Which is the best definition of an algorithm?
a line of computer code with input
a process to be followed to solve a problem
a programming language that uses symbols
a description of a future event
Which is the best definition of a variable?
A unit of measurement used in programming
A function used for inputting data
A string that can never change
A stored value with an associated name
What is the correct code to ask for a user’s favourite animal and store it in memory?
animal = input(“What is your favourite animal?”)
input = animal(“What is your favourite animal?”)
animal(“What is your favourite animal?”)
input(What is your favourite animal?)
What would be the output of the following code? - #print(“3 + 5”)
No output
8
3+5
Error message
What would be the output of the following code? - print(“3 + 5”)
No output
8
3+5
Error message
What would be the output of the following code? - print(3 + 5)
No output
8
3+5
Error message
Which of these statements about while loops is true?
While loops always execute the same number of times
While loops always execute at least once
While loops must have a condition
While loops must not contain an “if” statement
12. In Python, True or False is an example of what data type?
string
integer
boolean
float
If you want to create an empty list called colours in Python, which of the following is correct?
colours = [ ]
colours = ( )
colours = { }
colours = <>
Each item in a list has an index. What is the first index in a Python list?
0
1
a
A
What would this print?
What is the Python built-in function to converts a number to a string?
str()
int()
parseInt()
convert
Look at the following code, what will it generate
1,2,3,4,5,6,7,8,9,10,11,12
0,1,2,3,4,5,6,7,8,9,10,11,12
1,2,3,4,5,6,7,8,9,10,11,12,13
0,1,2,3,4,5,6,7,8,9,10,11,12,13
What does the following program display?
1,2,3,4
1,2,3,4,5
counter,counter,counter,counter,counter
0,1,2,3,4,5
How many variables are there in this program?
2
3
4
5
What would be the output of this program if the user input was 10?
22.04
220.4
2204
Error wrong data type
What operator is being used in this program?
less than
greater than
less than or equal to
greater than or equal to
What type of list is being used in this example?
Dictionary
List
Tuple
2d Array
What would be the output of this program if the user entered "yes" then "what"?
Enjoy your day
it is too windy for an umbrella
Take an umbrella
Error
Which of the following statements apply to tuples?
They are created using square brackets
They are created using curved brackets
They can be amended when the program is running
They can not be amended when the program is running
What data type represents a whole number?
Float
Int
Boolean
String
Which command used to change the screen size?
window = Tk()
window.mainloop()
window.geometry("400x300")
Which of the following is easy to use from the user?
Command Line
GUI (Graphical User Interface)
__________ is an element of GUI.
Widget
GUI
Application
Which is the correct way to use tkinter in python
program?
include tkinter *
import tkinter *
from tkinter import *
from tkinter include *
Which of the following attribute used to change the text
color of a Label widget in python tkinter
fg
foreground
bg
background
Which of the following attribute used to change the
background color of a Label widget in python tkinter
background
bg
fg
foreground
What is the full form of GUI?
Graphic Unit Interface
Graphical User Interface
Graphic Unit Input
______________ library provides fast and easy way to create GUI applications in Python.
Tkinter
IbtikarMaker
Graph
Choose the correct statement to display title.
window.title("My First Program")
window.title(My First Program)
window.title "My First Program"
Label , Button , Sliders are all examples of Widgets.
True
False
Which function is used to set the size of the tkinter
window?
setsize()
size()
geometry()
dimension()
What is tkinter?
A Python GUI module
A Python Scripting module
Whats the correct boolean type:
x == 5
x = 5
x = condition(True)
x = True
x == True
what is the following:
x = [3, 5, 7, 10, 9]
A boolean
A tuple
A list
A string
How many times will the following code execute:
i = 0
while i <= 10:
print(i)
i += i
Infinity
None because <= isnt valid
10
9
In the below function how is the the thing inside the brackets called:
def handle_turn(current_turn):
Parameter
Condition
Info
Def info
String
in:
import random
whats random?
function
module
External_function
External_module
I.E (Importable Element)
What will the below line of code print?
print(3**2)
9
12
10
5
This is a picture of a ____.
CSS Rule
HTML Rule
Tags
Coding
The blue is called an _____________
Declaration
Selector
Property
Value
The blue is called an _____________
Declaration
Selector
Property
Value
The blue is called an _____________
Declaration
Selector
Property
Value
