Computer Science Long Exam

Computer Science Long Exam

University

30 Qs

quiz-placeholder

Similar activities

python collection

python collection

University

29 Qs

Q1-AP-2023

Q1-AP-2023

University

25 Qs

CodeChef (Secret Snippet)

CodeChef (Secret Snippet)

University

35 Qs

Round_1 (B)| Coding Combat 2.0

Round_1 (B)| Coding Combat 2.0

University

30 Qs

python basic

python basic

University

27 Qs

Quiz 2

Quiz 2

University

25 Qs

GNIDOC ROUND 1

GNIDOC ROUND 1

University

25 Qs

Object-Oriented Programming_LQ#1_AVW1

Object-Oriented Programming_LQ#1_AVW1

University

35 Qs

Computer Science Long Exam

Computer Science Long Exam

Assessment

Quiz

Computers

University

Easy

Created by

CSU 2021

Used 1+ times

FREE Resource

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Marco is learning Python for the first time. Which of the following lines correctly declares a variable that stores his favorite color?

favoriteColor = blue

favorite color = "blue"

favorite_color = "blue"

"blue" = favorite_color

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

You want to store your age, height in meters, and name in Python. Given the program snippet, what are the correct data types for age, height, and name?

int, int, string

float, int, string

int, float, string

string, float, int

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following variables is NOT following proper naming conventions?

1stName

firstName

first_name

FIRST_NAME

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

Given the code snippet, what will be the output of this code?

Hi! I'm Eryne 13

Error: Wrong print syntax

Hi! I'm Eryne and I'm 13 years old.

Hi! I'm name and I'm age years old.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used to check if two values are equal in Python?

=

!=

==

equals

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

Given the code snippet, what will be the output of this code?

0

1

2

3

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Anna wants to know if a student is at least 13 years old AND in Grade 7 or higher. Which of the following conditions is correct?

age = 13 and grade = 7

age >= 13 or grade >= 7

age >= 13 not grade >= 7

age >= 13 and grade >= 7

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?