Coding in AI - Quiz 1

Quiz
•
Computers
•
1st - 10th Grade
•
Hard
Kim Lim
Used 3+ times
FREE Resource
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the datatype which represents a whole number?
String
Boolean
Float
Integer
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output when following code is executed?
print("D", end = ' ')
print("C", end = ' ')
print("B", end = ' ')
print("A", end = ' ')
DCBA
A, B, C, D
D C B A
D, C, B, A will be displayed on separate rows
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the expected output, when the following code is executed?
Hello MARY
Hello..MARY
Hello MARY
None
Hello MARY
Hello MARY
sayHello('MARY')
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output of the following?
1 2 3 4 5 6 7 will be displayed on separate rows
1 2 3 4 5 6 will be displayed on separate rows
1 2 3 4 5 6
none of the above
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the missing expression for the following code?
'p' in data
any((c == 'p') for c in data)
data.find('p')==-1
data[0:3]=='p'
Similar Resources on Wayground
10 questions
Python Variables

Quiz
•
7th - 12th Grade
10 questions
Year 7 Python Lesson 1 Recap

Quiz
•
8th Grade
10 questions
Programming in Java

Quiz
•
8th Grade
10 questions
Exploring Python: Input and Output Essentials

Quiz
•
9th Grade - University
8 questions
Python Basics Quiz

Quiz
•
6th Grade
10 questions
Типы данных

Quiz
•
7th Grade
10 questions
Spreadsheets

Quiz
•
5th - 6th Grade
10 questions
1.2 Basic String Manipulation

Quiz
•
9th Grade
Popular Resources on Wayground
55 questions
CHS Student Handbook 25-26

Quiz
•
9th Grade
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
10 questions
Chaffey

Quiz
•
9th - 12th Grade
15 questions
PRIDE

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
22 questions
6-8 Digital Citizenship Review

Quiz
•
6th - 8th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade