Coding in AI - Quiz 1

Coding in AI - Quiz 1

1st - 10th Grade

5 Qs

quiz-placeholder

Similar activities

Python - Printing, Variables and Syntax

Python - Printing, Variables and Syntax

8th Grade

10 Qs

Dasar Pemrograman C++

Dasar Pemrograman C++

10th Grade

10 Qs

Year 7 Python Lesson 1 Recap

Year 7 Python Lesson 1 Recap

8th Grade

10 Qs

Programming in Java

Programming in Java

8th Grade

10 Qs

Python Basics

Python Basics

8th - 10th Grade

10 Qs

Python_R

Python_R

2nd Grade - Professional Development

8 Qs

Python Lesson 1 - Homework

Python Lesson 1 - Homework

8th - 9th Grade

10 Qs

Introduction to Python

Introduction to Python

9th Grade

10 Qs

Coding in AI - Quiz 1

Coding in AI - Quiz 1

Assessment

Quiz

Computers

1st - 10th Grade

Hard

Created by

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

Media Image

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

Media Image

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

Media Image

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'