Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Advanced Programming - (Pre-Test)

Total questions: 34

Worksheet time: 19mins

Name
Class
Date
1.

Which language describes the structure of web pages?

a)

HTML

b)

CSS

c)

Python

d)

JavaScript

2.

Which language is used to enhance the visual appeal of a web page?

a)

HTML

b)

CSS

c)

Bootstrap

d)

Javascript

3.

Which of the following is the correct syntax to add the external stylesheet in CSS?

a)

<style src = quiz.css>

b)

<style src = "quiz.css">

c)

<stylesheet> quiz.css </stylesheet>

d)

<link rel="stylesheet" href="quiz.css">

4.

Which property lets you stop the background image from appearing as a grid?

a)

background-color

b)

background-size

c)

background-repeat

d)

background-cover

5.

Which CSS property will you use to change the color of the text?

a)

color

b)

text-color

c)

colour

d)

text-colour

6.

Which property is used to create space around an element's content inside its defined border?

a)

padding

b)

margin

7.

Which property is used to create space around an element's content outside its defined border?

a)

padding

b)

margin

8.

Which of these properties will let the div cover the entire width of its parent?

a)

width:100px

b)

width:100%

9.

The two most common types of HTTP requests are

a)

SET, POST

b)

GET, POST

c)

PUT, STOP

d)

GET, STOP

10.

Which attribute of the form determines the URL to which the data is sent?

a)

action

b)

method

c)

encytype

d)

target

11.

Which property horizontally aligns the items in a flexible containers?

a)

align-items

b)

justify-content

c)

justify-items

d)

text-align

12.

Which of the below is a CORRECT example of writing CSS properties?

a)

font-size 20px color red

b)

font-size: 20px; color: red;

c)

font-size: 20px color: red

d)

font-size 20px; color red

13.

How is it possible to pass values from Python to HTML templates?

a)

render_template("file.html", item=value)

b)

rendertemplate(item=value, "file.html")

c)

render_template("file.html", item:value)

d)

render_template("file.html", item, value)

14.

How is it possible to use a passed variable in an HTML template?

a)

{ var_name }

b)

{{ var_name }}

c)

{[ var_name ]}

d)

{% var_name %}

15.

Template HTML files must be placed in which folder?

a)

static

b)

html

c)

main

d)

templates

16.

CSS files must be placed in which file?

a)

static

b)

templates

c)

main

d)

style

17.

Django is a web...

a)

Language

b)

Framework

c)

Protocol

d)

Algorithm

18.

With Django, Python is used on the...

a)

Front end

b)

Back end

c)

Could be either

19.

To make your site available to anyone with access to the web, you need to copy the files to a web _______, which is a computer optimized to store and share the documents and that has an extremely high-speed Internet connection.

a)

portal

b)

server

c)

publisher

d)

client

20.

Which heading HTML elements will create the smallest font size on a website?

a)

<h1>name</h1>

b)

<h3>name</h3>

c)

<h6>name</h6>

d)

<h2>name</h2>

e)

<h5>name</h5>

21.

Look at the list above and predict the HTML code you would use to display it correctly. Choose from the following answers.

a)
b)
c)
d)
22.

Part of a CSS rule-set that defines which HTML elements the style should be applied to

a)

CSS Selector

b)

CSS

c)

HTML

d)

CSS Class

23.

The web developer wants to make the "My Page" text larger. Which TWO of the following would work? (Click on image to make it larger)

a)

Use <h6> instead of <h3>

b)

Use <h1> instead of <h3>

c)

Put the "My Page" text inside the tags.

d)

Use CSS to set the font-size property of the h3 tag

e)

Put the code `style="larger"` inside the h3 tag.

24.

Which property would select to change the amount of space around an image on an html page?

a)

float

b)

margin

c)

height

d)

width

25.

Which of the following statements is true?

a)

A class is blueprint for the object.

b)

You can only make a single object from the given class

c)

Both statements are true.

d)

Neither statement is true.

26.

What does "SQL" stand for?

a)

Structured Question Language

b)

Structured Query Language

c)

Simple Query Language

d)

Simple Question Language

27.

How would you define a relational database?

a)

A database consisting of data relating to families

b)

An online database

c)

A database linked to another database

d)

A database consisting of multiple tables, that are linked using keys

28.
What is a record?
a)
A row in a database
b)
A column in a database
c)
A raw figure
d)
A unique field
29.

What is the definition of a Primary Key?

a)

The first field in a database table

b)

A field in a table that contains a unique identifier for each record in the table

c)

A field in a database that can only contain two values

d)

A field in the database that has the same value for each record

30.

What is the definition of a Foreign Key?

a)

A field in a table that is written in another language

b)

A field in a table that links to the World Wide Web

c)

A field in a table that cannot be edited or accessed by users

d)

A field in a table that is used as a link to a field in another table

31.

What is the primary purpose of using classes in Python?

a)

To create reusable blocks of code that define a blueprint for objects.

b)

To execute multiple functions simultaneously.

c)

To handle exceptions during runtime.

d)

To create complex mathematical models.

32.

In the context of OOP, what is "inheritance" in Python?

a)

The concept of encapsulating data within objects.

b)

The method of defining private variables in a class.

c)

The ability of a class to inherit methods and properties from another class.

d)

The process of copying attributes from one object to another.

33.

What is "polymorphism" in Python OOP?

a)

The encapsulation of multiple data types in a single object.

b)

The inheritance of methods from multiple parent classes.

c)

The process of creating multiple objects from a single class.

d)

The ability of different classes to define methods with the same name but different implementations.

34.

In Python, what is the purpose of the super() function?

a)

To initialize class-level variables.

b)

To call a method from the superclass in a subclass.

c)

To prevent a method from being overridden.

d)

To access private variables from the superclass.