Quiz on String

Quiz on String

12th Grade

15 Qs

quiz-placeholder

Similar activities

Python Programming 1: print, strings, variables, casting

Python Programming 1: print, strings, variables, casting

9th Grade - University

15 Qs

LETS PLAY QUIZ - PYTHON CBSE CLASS XII

LETS PLAY QUIZ - PYTHON CBSE CLASS XII

11th - 12th Grade

20 Qs

Introduction to Loops

Introduction to Loops

9th - 12th Grade

10 Qs

Flow of Control in C++ ( Conditional statements)

Flow of Control in C++ ( Conditional statements)

9th Grade - University

17 Qs

DATA STRING

DATA STRING

12th Grade

20 Qs

Tracing Loops in Java

Tracing Loops in Java

12th Grade

17 Qs

AP CSA U1L01-03

AP CSA U1L01-03

11th - 12th Grade

18 Qs

Python Functions

Python Functions

12th Grade

15 Qs

Quiz on String

Quiz on String

Assessment

Quiz

Computers

12th Grade

Hard

Created by

Karma Phuntsho

Used 23+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a string?

A type that represents whole numbers.

Sequences of characters enclosed in a quotation marks

A combination of variables, operators, and values

Int, float and complex

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which one of the following is NOT a string?

a = "12345"

b = Thimphu

c = "Bhutan"

d = 'Thimphu, Bhutan'

3.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Fill in the blank with correct operator to concatenate(join) two strings.

a = "Thimphu "

b = "Bhutan"

c = a _ b

print(c)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following statements contain valid Python string literals?

a = "1234"

b = Bhutan

c = 'We're #1!'

d = Hello, World

5.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What’s the value of z after this code snippet executes?

x = "YHSS"

y = "2021"

z = x+y

print(z)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Guess the correct output of the following String operations:

x = "Welcome"

print(x*2)

WelcomeWelcome

Welcome Welcome

Welcome * 2

Error

7.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What is the index of the last character?

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?