Search Header Logo

Day-3 Assessment(Essentials of Data Analytics Using R)

Authored by Aman Kumar

Other

University

Used 2+ times

Day-3 Assessment(Essentials of Data Analytics Using R)
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

Point out the correct statement?

Blocks are evaluated until a new line is entered after the closing brace

Single statements are evaluated when a new line is typed at the start of the syntactically complete statement

The if/else statement conditionally evaluates two statements

Break will execute a loop while a condition is true

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following R syntax is correct for while loop?

while ( statement1 ) statement2

while ( statement1 ) else statement2

while ( statement1 ) do statement2

while ( statement2 ) doelse statement2

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Point out the wrong statement?

for will execute a loop a fixed number of times

break will execute a loop while a condition is true

if and else tests a condition and acting on it

break is used to break the execution of a loop

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which loop executes a sequence of statements multiple times and abbreviates the code that manages the loop variable?

repeat

for

while

do-while

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following true about for loop?

Repeats a statement or group of statements while a given condition is true. It tests the condition before executing the loop body.

it tests the condition at the end of the loop body.

Both A and B

None of the above

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which statement simulates the behavior of R switch?

Next

Previous

break

goto

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which of the following character skip during execution?

D

C

A

B

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?