Programming Quiz

Programming Quiz

12th Grade

30 Qs

quiz-placeholder

Similar activities

Integrated Design Project Quiz (PPT)

Integrated Design Project Quiz (PPT)

12th Grade

30 Qs

Satellite Communication Quiz 2

Satellite Communication Quiz 2

12th Grade

30 Qs

Komponen Instalasi Penerangan

Komponen Instalasi Penerangan

11th Grade - University

30 Qs

PLTW Robotics Final Exam

PLTW Robotics Final Exam

8th Grade - University

25 Qs

pkk kelas 11 tpl

pkk kelas 11 tpl

11th Grade - University

25 Qs

PTS XI KK TKJ Semester Genap 2024/2025

PTS XI KK TKJ Semester Genap 2024/2025

11th Grade - University

25 Qs

UTS DPK teknik mesin

UTS DPK teknik mesin

10th Grade - University

30 Qs

Telecommunication HSC

Telecommunication HSC

12th Grade

33 Qs

Programming Quiz

Programming Quiz

Assessment

Quiz

Engineering

12th Grade

Hard

Created by

Saloni Nandurkar

Used 5+ times

FREE Resource

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the length of the string "Hello, World!"?

10

12

13

14

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these statements is true about strings?

Strings are mutable (can be modified directly).

Strings are immutable (cannot be modified directly).

Strings are only numeric.

Strings cannot store special characters.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the index of the first element in an array?

1

0

-1

Depends on the language

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following methods checks if a substring exists within a string?

replace()

find()

split()

sort()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If str1 = "hello", what will str1[1:4] return?

"h"

"ell"

"ello"

An error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the result of len(" ") be?

0

1

2

An error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following operation? Input string: "Hello" Operation: Reverse the string.

"olleH"

"Hello"

"olle"

"Holle"

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?