CST 362 Programming in Python #1

CST 362 Programming in Python #1

University

8 Qs

quiz-placeholder

Similar activities

Sensors and Instrumentation Fun Quiz-2

Sensors and Instrumentation Fun Quiz-2

University

10 Qs

Group Activity 1

Group Activity 1

University

8 Qs

Python Variables

Python Variables

University

10 Qs

Section 4

Section 4

University

10 Qs

Python Basics

Python Basics

University

10 Qs

Python quiz

Python quiz

KG - Professional Development

10 Qs

GFG Final Quiz

GFG Final Quiz

University

10 Qs

Квиз по Python

Квиз по Python

University

10 Qs

CST 362 Programming in Python #1

CST 362 Programming in Python #1

Assessment

Quiz

Education

University

Easy

Created by

Sarju S

Used 2+ times

FREE Resource

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

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the output be from the following code?

print("3+4")

7

3+4

34

SyntaxError