Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Circle ALL the choices that apply from the following questions. For each questio

ID: 3797949 • Letter: C

Question

Circle ALL the choices that apply from the following questions. For each question, if there is only 1 correct choice, you will get 3 points if you circle it. If there are multiple correct choices, you will get 1 point for the first correct choice you circle and additional 1 point if you circle ALL the correct choices. Which one of the following not be used as a variable name? A) CS 101 B) test C) my_book D) group 1 If A = [2: 3: 8: 4 2 8; 3 5 1]; which of the following command(s) will return 5? A) A(5) B) A (2, 3) C) A(3, 2) D) A(6)

Explanation / Answer

Ans 6.

We have certain rules to name a Variable, the rules are: -

So, in the question given above, CS 101, cannot be used as a Variable name, as it has spaces, and does not satisfy the rules of Variable Naming Conventions.

All other can be used as the Variable Names.

Ans.

If A= {2:3:8;4 2 8:3 5 1}

So, after a semi colon sign we change a line or switch to next part, so in a given set, as 5 is in the 3rd part and is the 2nd element of the 3rd part, So, to return 5, we will use A (3,2), that is the C) option, as this will call the 3rd part and then the 2nd element of it.

This is all for the questions submitted by You.

Thank You for using Chegg...

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote