Search Header Logo

CST 362 Programming in Python #1

Authored by Sarju S

Education

University

Used 2+ times

CST 362 Programming in Python #1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following translates and executes instructions in a programming

language?

A compiler

A loader

A text editor

An interpreter

Answer explanation

compiler is not correct because the compiler translates the code into a low level language and does not run(execute)the code.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following outputs data in a Python program?

The input statement

The print statement

The assignment statement

The main function

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the set of rules for forming sentences in a language called?

Semantics

Syntax

Pragmatics

Logic

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Python3, Whatever you enter as input, the input() function converts it into a string

True

False

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the output be from the following code?print(3*4+5)

27

17

12

Syntax Error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A syntax error means your code has a 'grammar' mistake or you used symbols/operations incorrectly.

True

False

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What syntax would you use to create a name variable?

name=input()

input=name

name=input{}

name=INPUT

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?

Discover more resources for Education