CST 362 Programming in Python #1

Quiz
•
Education
•
University
•
Easy
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
Similar Resources on Wayground
10 questions
Praktisi Mengajar - Java Test

Quiz
•
University
10 questions
Diagnostic Quiz

Quiz
•
University - Professi...
10 questions
java

Quiz
•
University - Professi...
9 questions
Transmission Lines

Quiz
•
University
10 questions
The backwash effect: from testing to teaching

Quiz
•
University
8 questions
7th quiz

Quiz
•
7th Grade - University
10 questions
202305 BGMC4513 Quiz 1

Quiz
•
University
10 questions
Linguistic Method

Quiz
•
University
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
10 questions
"LAST STOP ON MARKET STREET" Vocabulary Quiz

Quiz
•
3rd Grade
19 questions
Fractions to Decimals and Decimals to Fractions

Quiz
•
6th Grade
16 questions
Logic and Venn Diagrams

Quiz
•
12th Grade
15 questions
Compare and Order Decimals

Quiz
•
4th - 5th Grade
20 questions
Simplifying Fractions

Quiz
•
6th Grade
20 questions
Multiplication facts 1-12

Quiz
•
2nd - 3rd Grade