Functions, Loops, Arrays, Objects

Functions, Loops, Arrays, Objects

9th - 12th Grade

20 Qs

quiz-placeholder

Similar activities

Foundations of Programming

Foundations of Programming

9th - 10th Grade

18 Qs

Python In transit loops and iterations

Python In transit loops and iterations

12th Grade

20 Qs

Coding Test Review

Coding Test Review

9th - 12th Grade

21 Qs

C# 101 Assessment

C# 101 Assessment

9th - 12th Grade

20 Qs

FOR and WHILE loop in Python

FOR and WHILE loop in Python

9th - 12th Grade

18 Qs

If-Else Loops: Python Programming

If-Else Loops: Python Programming

11th Grade

16 Qs

Code Tracing

Code Tracing

12th Grade

17 Qs

Unit 8 - Searching and Sorting

Unit 8 - Searching and Sorting

9th - 12th Grade

15 Qs

Functions, Loops, Arrays, Objects

Functions, Loops, Arrays, Objects

Assessment

Quiz

Computers

9th - 12th Grade

Hard

Created by

Shantanu Agrawal

Used 4+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

How to access 'Shantanu' from => names { 0: 'Shantanu' }

names.0

names[0]

Both names.0 and names[0]

None of the above

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

How to access first element of colors array?

colors.0

colors[0]

Both colors.0 and colors[0]

None of the above

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the syntax of an object property?

key: value

value: key

key: { value }

value: { key }

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

How to add an element to the end of an array?

.shift() method

.push() method

.unshift() method

.insert() method

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What are objects?

collections of properties

collections of arrays

collections of integers

collections of any primitive data type

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Select the odd one out

Arrays are accessed using indices

Objects are accessed using keys

Objects do not have indices

Arrays are accessed using keys

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

How to remove an element from the end of an array?

.shift() method

.push() method

.unshift() method

.pop() method

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?