wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

2nd Term MCQs_Grade_VII

Total questions: 140

Worksheet time: 1hrs 25mins

Name
Class
Date
1.

What will be the output?

name = "Dave"

print (name)

a)

Dave

b)

name

c)

"Dave"

d)

(name)

2.

What is a input?

a)

To plug in something

b)

A function that allows us to ask the user to enter some data

c)

Data displayed on a screen

d)

A routine

3.

A variable must have been assigned (given) a value before that value is referenced (used).

a)

True

b)

False

4.

The correct way to convert user input is:

a)

birth_year = number(input())

b)

birth_year = int(input())

c)

birth_year = (input(int))

d)

birth_year = int(input)

5.

To display the following on screen Hello World! the following command should be used:

a)

print(Hello World!)

b)

print("Hello World" + !)

c)

print("Hello World!")

d)

print"(Hello World!)"

6.

You assign a value to a variable with which symbol

a)

@

b)

==

c)

=

d)

*

7.

The code you use to receive and input from the keyboard

a)

enter()

b)

add()

c)

receive()

d)

input()

8.

Program statements are executed in sequence, one after the other...

a)

True

b)

False

9.

if you receive a NameError when you run your program it means....

a)

A variable has been assigned before it has been referred to

b)

An incorrect name has been chosen

c)

A variable has been referred to before it has been assigned

d)

A language key word has been used

10.

If the coding steps are in the incorrect order, the computer can still execute the program.

a)

True

b)

False

11.

Which command will display the text 'Hello world!' on the screen?

a)

print(Hello world!)

b)

print "Hello world!"

c)

print("Hello world!")

d)

print = "Hello world!"

12.

Which command will correctly ask the user for their age?

a)

age = input("How old are you?")

b)

age = input(How old are you?)

c)

input("How old are you?") = age

d)

How old are you = input()

13.

Which decision statement will be triggered if the variable x is less than 20?

a)

if x > 20:

b)

if x <> 20:

c)

if x == 20:

d)

if x < 20:

14.

Which of these tests whether the variable x is the same as 'Hello'?

a)

x = "Hello"

b)

x != "Hello"

c)

x == "Hello"

d)

x <> "Hello"

15.

What is the output of the following program?

a)

Yes

b)

No

c)

Error

d)

No output

16.

What is the output of the following program?

a)

Yes

b)

No

c)

Error

d)

No output

17.

What is the output of the following program?

a)

1 to 10 numbers

b)

1 to 5 numbers

c)

1

d)

5

18.

What would the output of this code be if the user entered the value 70?

a)

Pass

b)

Fail

c)

Merit

d)

Distinction

19.

What would the outcome of this program be?

a)

22

b)

50

c)

Nothing, it won't run due to errors in the code

d)

38

20.

What would the outcome of this program be?

a)

prints 1 to 10 numbers

b)

prints 10 to 1 numbers

c)

prints 1 to 15 numbers

d)

prints 1 to 14 numbers

21.

What would the outcome of this program be?

a)

prints 5 to 50 numbers

b)

prints 5 to 49 numbers

c)

prints 5 to 55 numbers

d)

prints multiples of 5 upto 50

22.

What is the output of the following program?

for i in range(0, 5):

print(i)

i=i+1

a)

1 to 5 numbers

b)

1 to 4 numbers

c)

0 to 4 numbers

d)

0 to 5 numbers

23.

Which has integer data type?

a)

Phone number

b)

Zip code

c)

HN

d)

Number of students in the class

24.
What is Python really?
a)
Python is an interpreted language.
b)
visual basic
c)
a snake 
d)
a form of font for writing 
25.
what are the advantages of python?
a)
free and open source 
b)
can do the work for you 
c)
easy 
26.
what is 8%2
a)
0
b)
16
c)
24
d)
86
27.
what is python?
a)
a programming language 
b)
a code 
c)
nothing 
d)
a game 
28.
Code executed based on a condition being true
a)
Sequence
b)
Selection
c)
Iteration
d)
Variable
29.

What does the following code do? myAge = int (myAge)

a)

Converts the var (variable) myAge to a string

b)

Converts the var (variable) myAge to a integer

c)

Converts the var (variable) myAge from a integer to a string

d)

Converts the var (variable) myAge to if statement

30.
What will the output be from the following code?
print(Hello world!)
a)
Hello world!
b)
SyntaxError
c)
Hello world
d)
print(Hello world!)
31.
Tells the interpreter that the code which follows is a function
a)
const
b)
int
c)
def
d)
while
32.
What does the term 'debug' mean?
a)
Identify errors and fix them.
b)
Making a calculation
c)
A set of instructions
d)
Looking at code
33.
What syntax can you use to insert a line break between strings so that they appear over multiple lines?
a)
/
b)
\n
c)
\l
d)
n
34.
What will the output be from the following code?
print("Hello world!" * 2)
a)
TypeError
b)
Hello world world!
c)
Hello world!Hello world!
d)
Hello world! * 2
35.
If you want more than one option for your code, what do you use (after if)?
a)
elif
b)
else
c)
ifif
36.

Python is ___________ level programming language and is ___________.

a)

High, compiled

b)

High, interpreted

c)

Low, compiled

d)

Low, interpreted

37.

The syntax in Python (TM) is one of the main advantages over other high level programming languages.

a)

True

b)

False

38.

A string

a)

carries out an action

b)

the elements of a command

c)

a collection of characters

d)

how elements in a commad are arranged

39.
What kind of programming language is Python?
a)
High Level  & Object Orientated
b)
Low Level & Object Orientated
c)
High Level & Procedural
d)
Low Level & Procedural
40.
How would would you print a text string?
a)
output "Hello!"
b)
print "Hello!"
c)
print (Hello!)
d)
output (Hello!)
41.
How would you assign an integer to a variable?
a)
new_var = 4
b)
new_var == 4
c)
new_var = "4"
d)
new var "4"
42.
What are the 4 main datatypes used in python?
a)
Text, Image, Boolean & Number
b)
Number, String, Text & Boolean
c)
String, Integer, Float & Boolean
d)
Text, String, Integer & Float
43.
Changing the value of a variable e.g. from new_var = 5 to new_var = 10 is called?
a)
Reassignment
b)
Switching
c)
Initiating
d)
Re-initiating 
44.
The variable new_var = 7.  To print the value of new_var, which statement would you use?
a)
output "new_var"
b)
print new_var
c)
print "new_var"
d)
output "7"
45.
Your code will not work unless you indent and format code properly.  Another word used for indenting is..?
a)
whitespace
b)
alignment
c)
assignment
d)
initiation
46.
What do we call the window where you type your code?
a)
The Editor
b)
The Data Entry Screen 
c)
The Code Area
d)
The Statement Window
47.
The window where the output of our code appears is called either the console or the..?
a)
Interface
b)
Print Screen
c)
Compiler
d)
Interpreter
48.
Which symbol do we use if we want to add a comment to our code?
a)
@
b)
#
c)
*
d)
&
49.
Which of the following is a multi-line comment?
a)
"""Multi-line Comment Here"""
b)
""Multi-line Comment Here""
c)
"Multi-line Comment Here"
d)
'Multi-line Comment Here'
50.
To create a variable named new_var and assign it a value of 81 divided by 9, which statement would you use?
a)
new_var = 81 \ 9
b)
new_var = "81 / 9"
c)
new_var = "81 \ 9"
d)
new_var = 81 / 9
51.
Choose the statement that assigns 4 to the power of 3 to the variable new_var...
a)
new_var = 4 ** 3
b)
new_var = 3 ** 4
c)
new var = 3 ** 4
d)
new_var = 4 ^^ 3
52.
Which of the following statements would return the value 2?
a)
new_var = 8 % 3
b)
new_var = 4 % 2
c)
new_var = 10 ** 2
d)
new_var = "4 % 2"
53.
Which of the following is a float?
a)
new_var = 1234
b)
new_var = True
c)
new_var = 1.234
d)
new_var = "True"
54.
Which of the following is not a string?
a)
new_var = "True"
b)
new_var = "3123"
c)
new_var = "3.123"
d)
new_var = False
55.
Which of the following text strings is correct?
a)
new_var = "Tim/'s Computer"
b)
new_var = "Tim\'s Computer"
c)
new_var = "Tim's Computer"
d)
new_var = Tim's Computer
56.
How would we assign the first letter of a text string to a variable?
a)
new_var = "School"[0]
b)
new_var = "School"[1]
c)
new_var = "School"(0)
d)
new_var = "School"(1)
57.
How would you assign the value of "n" to new_var?
a)
new_var = "Python"[6]
b)
new_var = "Python"(5)
c)
new_var = "Python"(6)
d)
new_var = "Python"[5]
58.
How would you output the number of characters in the string "Python", where new_var = "Python"?
a)
print len(new_var)
b)
print len(Python)
c)
print len("new_var")
d)
print length(new_var)
59.
How would you convert "YES" to lower case?
a)
"YES".lower()
b)
lower"YES"
c)
lower.("YES")
d)
("YES").lower
60.
How would you output the variable new_var = "python" to uppercase?
a)
print new_var.upper()
b)
print (new_var).upper
c)
print new_var.upper[]
d)
print new_var(upper)
61.

What is a digital footprint?

a)

Your foot

b)

A trail of data on the internet

c)

A trail on land

d)

Your computer

62.

Can a digital footprint hurt you?

a)

Yes

b)

No

63.

How can a digital footprint be dangerous?

a)

Your personal data can be seen and shared

b)

Your personal data can be published

c)

Internships, and college admissions can see what you do

d)

All of the above

64.

Do you leave a digital footprints on google´s incognito mode?

a)

Yes

b)

No

65.

Can a digital footprint be edited or erased after you have done something?

a)

Yes

b)

No

66.

Can you prevent being tracked on the internet?

a)

Yes

b)

No

67.

How do you prevent being tracked?

a)

Use a search engine that doesn't track you

b)

Use a browser add on

c)

Use an tool to encrypt your connection

d)

All of the above

68.

Who can look at your footprint?

a)

Your Parents

b)

Anyone

c)

Criminals

d)

FBI

69.

How do you create a digital footprint?

a)

Eating Pringles

b)

Going on your device

c)

Searching your favorite celebrity on the web.

d)

Telling you mom about your grades

70.

Did you just leave a digital footprint now?

a)

Yes

b)

No

71.

True or False: Your digital footprint is all the information about you online that ONLY you post.

a)

True

b)

False

72.

What kinds of information can make up a digital footprint?

a)

Online photos you've posted

b)

Comments that others post about you

c)

Both a and b

73.

What kinds of information would make a POSITIVE digital footprint? Select ALL that apply.

a)

Photos of you doing work in the community

b)

A newspaper article about your soccer team

c)

A mean comment that you made on a friend's website

d)

A blog you created to showcase your artwork

e)

Inappropriate photos of you on a social network site

74.

What tips can help you keep track of your digital footprint? Select ALL that apply.

a)

I can ask my friends what they think about me.

b)

I can start a webpage for each hobby I have.

c)

I can review any posts or photos that I’m tagged in.

d)

I can search for my name online.

e)

I can create a social network profile with strong privacy settings.

75.

What should you NOT do to create a positive digital footprint?

a)

Be friendly and polite when chatting.

b)

Post photos and comments about every funny thing you do.

c)

Post things about yourself that you wouldn’t mind other people sharing.

d)

Create a username that does not reveal your identity.

76.

Digital footprints are ____ meaning that they last a long time, maybe even forever.

a)

helpful

b)

persistent

c)

educational

d)

temporary

77.

Which of the following people could be a part of your invisible audience? Select ALL that apply.

a)

Mr. Raines

b)

Your peer sitting to your left or right

c)

A thirteen-year-old boy living in New York City

d)

The Easter Bunny

78.

True or False: You are always in control of the information that is being posted about you online.

a)

True

b)

False

79.
What is "the trail, traces or footprints that people leave online"?
a)
Genetic Footprint
b)
Digital Footprint
c)
Digital Handprint
d)
Computer Prints
80.
True/False: Things that you post can be seen by others even if your settings are set to private?
a)
True
b)
False
81.
True/False: It is a good idea to "overshare" on social media?
a)
True
b)
False
82.
Which is a good way to maintain a positive digital footprint?
a)
Don't overshare
b)
Use privacy settings
c)
Only post things that you would want everyone to see
d)
All of the above
83.
When you upload something into Google Drive you are?
a)
Deleting something
b)
Creating a new folder
c)
Putting something from your computer into Google Drive
d)
Copying a file
84.

"The internet is not written in pencil Mark, it's written in ink." What does "it's written in ink" mean?

a)

Persistent

b)

Temporary

c)

Visible to all

d)

Permanent

85.

You should never Google yourself.

a)

True

b)

False

86.

Your digital footprint is your brand others see when you are not around.

a)

True

b)

False

87.

It doesn't matter what I post on my Twitter timeline, my privacy settings will keep others from re-posting my information.

a)

True

b)

False

88.

Colleges and future employers who are interested in me will first look at...

a)

my letters of reccomendation

b)

my entrance essay

c)

my online profiles

d)

my school transcripts

89.

It is important to consider who will view or who could potentially view my online accounts and posts.

a)

True: what others see online about me is important

b)

False: Only my parents care what's online about me

c)

True: everything online represents who I am when I am not around to personally defend, explain or show others who I am. It's important for me to project a positive atmosphere and picture of myself.

d)

False: It doesn't matter what I post online or what is posted about me online

90.
How does a computer virus infect a pc?
a)
Email attachments
b)
Attached to files on memory sticks
c)
Suspicious web links
d)
All of the above
91.
What can a virus do to your computer?
a)
Delete files
b)
Cause inappropriate adverts to appear
c)
Spy on what you are doing
d)
Steal your infotrmation
92.
How can you protect your computer against viruses?
a)
Put a lock on it.
b)
Install an anti-virus package, scan and delete files and update it.
93.
How does a worm infect a computer?
a)
E-mail attachments
b)
Through security loopholes, your computer is not up to date
c)
Suspicious web links
d)
On memory sticks
94.
How does a worm infect a computer?
a)
E-mail attachments
b)
Through security loopholes, your computer is not up to date
c)
Suspicious web links
d)
On memory sticks
95.
How can you protect your computer against worms?
a)
Install anti-virus software and regularly update it.
b)
Update your operating system regularly.
96.
What is the difference between a virus and a worm?
a)
A virus needs human intervention, a worm doesn't
b)
A virus deletes files, whereas a worm doesn't.
97.
What is adware?
a)
Causes adverts to appear
b)
Deletes files
98.
How is adware malicious?
a)
Deletes files.
b)
Inappropriate and wastes your time/
c)
Slows your pc down.
d)
Spies on you, collecting your information
99.
How can a trojan infect your pc?
a)
On memory sticks.
b)
Through email attachments.
c)
By being disguised as legitimate software.
d)
Dodgy web links
100.
What is spyware?
a)
Causes adverts to appear on screen.
b)
Software that deletes your files
c)
Slows your pc down.
d)
Collects information from you and transfers it across the internet.
101.
How can you protect against spyware?
a)
Install, Scan and delete spyware with a program like lavasoft
b)
Don't open email attachments
102.
What is ransomware?
a)
blocks access until money is paid
b)
steals your money
c)
when someone steals your computer
d)
Malware that multiplies
103.
What is spyware?
a)
blocking access until money is paid
b)
When a man stands behind you with a mask on
c)
Sends information covertly 
d)
a virus that can spread to other computers
104.
What is a trojan horse?
a)
A program that kicks your computer
b)
A program that spreads on your computer
c)
blocking access until money is paid
d)
A program that attacks your computer while completing a normal task
105.
Why is a trojan horse sneaky?
a)
It is very inviting
b)
It creeps into your computer
c)
It attacks your computer while it seems like it completes a relevant task
d)
Because of the romans
106.
What is a virus?
a)
blocking access until money is paid
b)
A piece of code that can copy itself and attack a computer
c)
Sends information covertly 
d)
when someone steals your computer
107.
What does a virus need to be able to mutliply?
a)
A person
b)
A download
c)
A host (something to attach to)
d)
An unsuspecting victim
108.
What is a worm?
a)
A virus that replicates itself through computer networks
b)
blocking access until money is paid
c)
A program that attacks your computer while completing a normal task
d)
An animal that lives when you cut it in half
109.
What is the difference between a worm and a virus?
a)
A worm is pink
b)
A worm is made to burrow in the ground
c)
A worm does not need to attach to anything to multiply
d)
A virus only takes your money
110.
How can you protect yourself from malware?
a)
Don't have a computer
b)
Use a trusted anti-virus software
c)
Download any anti-virus software
d)
Just send your details to the attacker and they will leave you alone
111.

Keeping your personal information a secret online is a wise policy. In the preceding sentence, what does "policy" mean?

a)

Method

b)

Type of software

c)

Trick a trap

d)

General plan

112.
If you're confronted by a difficult situation online, and you don't know exactly how to handle it, what should you do?
a)
Ask an online friend for help 
b)
turn off the computer
c)
make an educated guess
d)
tell an adult your trust
113.
You receive this text from a number you don't recognize. What's the best response?
a)
Send a text back asking who it is
b)
Spy on the water fountain and see who shows up
c)
Dont' respond and tell your parents
d)
Send a text back saying "No"
114.
Why do you need to be more cautious with friends you meet online than with the friends you meet at school?
a)
 Most people on the Internet aren't as trustworthy as people in the real world
b)
Friendships that begin online aren't "real"
c)
Online, it's more difficult to tell if a person is who he says he is 
d)
Websites have very strict rules about online frien 
115.
Which of the following is the best place to keep your passwords? 
a)
Notebook
b)
Sticky note
c)
Word File
d)
In your hand
116.
Which word best describes how you should proceed with a new online friend? 
a)
Erratically 
b)
Cautiously 
c)
Deceitfully 
d)
Candidly 
117.
What kind of personal information is it okay to reveal online? 
a)
Your phone number
b)
The name of your school 
c)
Your home address
d)
Your favorite actor 
118.
If you're friendly to people you meet online, chances are your behavior will be reciprocated. In other words: 
a)
If you're friendly, your Internet service might be suspended
b)
If you're friendly, crooks online will take advantage of you
c)
 If you're nice to people, they'll probably be nice to you as well
d)
Making an effort to be nice online is usually a waste of time 
119.
When is it okay to submit your personal information to a website? 
a)
When one of your friends tells you that the site is safe
b)
When your parents say it's okay
c)
 When you receive an email requesting personal information 
d)
When all of your friends have already done it 
120.
Olive is a 12-year-old girl living in Orlando, Florida. Which of the following screen names is the safest for her? 
a)
OliveBet55
b)
Florida_Gurl 
c)
AstroCat
d)
TweenChick98 
121.

A stranger asks you on facebook to send a photo of yourself to them you .....

a)

Send them a photo

b)

Show your friends so they can add them

c)

Block the user and tell an adult

122.

When creating a password your password should include ....

a)

Your dog's name

b)

Numbers and letters

c)

Your own name

123.

You should give your bank card to ....

a)

No one

b)

Your friends

c)

A stranger

124.

Your social media accounts should be set to ....

a)

Private

b)

Public

125.

Your friend says they wont be friends with you anymore unless you give them your password. You should ....

a)

Tell them that's a bad thing to say and not give them the password

b)

Give them your password

126.

A stranger rings you and asks you for your details you should ....

a)

Tell them your full name and address

b)

Don't tell them any of you personal information

c)

Invite them to your birthday party

127.

A stranger tells you that they need to contact your parents what do you do?

a)

Give them your parents phone number

b)

Give them your address

c)

Tell them NO! They are a stranger

128.

Someone asks if they can take a photo of you at the beach, you ....

a)

Let them take a photo

b)

Tell them NO! They are a stranger. Then report it to a trusted adult.

c)

Scream

129.

You are playing an online game and a boy/girl tells you they have a crush on you. You don't know this person so you should ....

a)

Be careful. You don't know if this person is who they say they are

b)

Swap phone numbers

c)

Plan a date

130.

A boy/girl messages you asking for you to send them a photo in the bathroom, what do you do?

a)

No one should be asking you for a photo in a PRIVATE place.Report it to a trusted adult.

b)

Send them a photo and ask for a photo of them in the bathroom.

c)

Delete the message

131.

Which word have you learned that means to hide something .

(a)  

132.

What does "private information" mean?

a)

Information I shouldn't tell

b)

Information I can share

c)

Information that everyone knows

133.

What information do you keep private online?

a)

My Full Name

b)

My Phone number

c)

My Bank Number

d)

My Address

134.

https://youtu.be/9TRR6lHviQc

4 lines
135.

What is phishing?

a)

People trying to take money or personal details

b)

Catching fish

c)

businesses contacting you

d)

A survey

136.

. You get a text from an unknown number. What do you do?

a)

Text or call the number

b)

Block the number

c)

Google the number

d)

Delete the number

e)

Tell my parents or family

137.

You get an email from a company asking for your bank account number and PIN. What do you do?

a)

Give them my account number and PIN number

b)

Ignore the message

c)

Tell my family

d)

Block and delete the email

138.

Should you use the same password for your email, amazon, Youtube and snap chat?

a)

No, use different passwords

b)

Sometimes

c)

Yes, it is easier to remember

139.

Should you use your real name as a username?

a)

Yes

b)

No

140.

Should you give your password to people online?

a)

Yes

b)

No