Search Header Logo

React Native Basics Assessment

Authored by lucky Saputra

Computers

12th Grade

React Native Basics Assessment
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a variable in React Native?

A variable in React Native is a named storage location for data that can change during program execution.

A variable in React Native is a type of component.

A variable in React Native is a method for rendering UI.

A variable in React Native is a fixed storage location for data.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you declare a variable in React Native?

You declare a variable with 'define' or 'declare'.

You declare a variable using 'import' or 'export'.

You must use 'function' to declare a variable.

You declare a variable using 'let', 'const', or 'var'.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the different data types available in React Native?

String, Number, Boolean, Array, Object, Function, Null, Undefined

Character, Decimal, List, Set

Text, Integer, Flag, Map

Byte, Tuple, Date, Time

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the expression 5 + 3 in React Native?

6

8

4

10

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you perform subtraction in React Native?

Use the subtraction operator (-) in JavaScript to perform subtraction.

Use the addition operator (+) in JavaScript.

Subtraction is not possible in React Native.

You can only subtract numbers in a database.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the if statement in React Native?

To conditionally render components or execute code based on specific conditions.

To create new components in React Native.

To define styles for components in React Native.

To manage state in React Native applications.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you write an if-else statement in React Native?

if(condition) then { /* code if true */ }

if(condition) { /* code */ }

if(condition) { /* code if true */ } else { /* code if false */ }

if(condition) { /* code if false */ }

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?