Search Header Logo

NJIT CS100 - Test

Authored by Waheetha Yunus

Computers

12th Grade

CCSS covered

Used 3+ times

NJIT CS100 - Test
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

To create a newline at the end of prompt, you can use which of the following expressions?

\new
\n
\break
\return

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be the output?
name = 'Dave'
greeting = "Good morning" + name
print (greeting)

Good moning 'Dave'
Good morning Dave
Good morning name
Good morning + Dave

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Why is it called 'Python'?

The guy who created it loves snakes
The guy who created it loves Monty Python films
You can create a game on python called snake
It was created by someone called Mr Python

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Python is an example of a....

Text-based programming language
Object orientated programming language
language written in java script
Visual-based programming language

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will the output be from the following code?
print("Hello" + str(2) + "world!")

Hello world! Hello world!
Hello2world!
Hello Hello world! world!
SyntaxError

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Code executed based on a condition being true

Sequence
Selection
Iteration
Variable

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

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

Converts the var (variable) myAge to a string

Converts the var (variable) myAge to a integer

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

Converts the var (variable) myAge to if statement

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?