0% found this document useful (0 votes)
5 views3 pages

5

Uploaded by

zaka2estena3i1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views3 pages

5

Uploaded by

zaka2estena3i1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

1.

Examine the following: var a=true,b=false,c=false; log( a || b


&& c): The result will be:

o True

2. A variable declared inside a function is visible…

o Locally inside of the function only

3. The array method that adds elements to the end of an array


is…

o push

4. Consider the following code. What is this structure called?

o nested loops

5. Given the following code, what would print?

o 40

6. Consider the following code. The word make represents a…

o property

7. Coding in Python is…

o Case sensitive

8. A ________ is a planned, organized series of goals, steps, or


milestones that helps a student or jobseeker organize their
path to a desired career.

o Career map

9. Consider the following code. What does “==” do in this


statement?

o Check if the value in gender is equal to M or m

10. Given the following code, what would print if the user
entered Jacob?

o Howdy, Jacob

11. Given the following code, what would printed?

o Times
12. Which line will read the text out of an HTML textbox with
id firstName and store it in variable x?

o var x = document.getElementById(‘firstName’).value

13. Which of the following will return a number with a


decimal value?

o float( )

14. What is the function to determine how many characters


are in a string?

o len( )

15. Python is a(n) ______________ language.

o Interpreted

16. A(n) _________ is a collection of methods and properties


created by a programmer.

o Class

17. What is the command to escape a loop?

o break

18. The default datatype in Python is:

o String

19. If you are coding a loop structure and want to have the
program step out of the loop, what keyword does Python use?

o Break

20. Consider the following code. What will happen?

o Nothing will print

21. The array method that removes elements from the front
of an array is…

o shift

22. Which of the following is a soft skill?

o Collaboration

23. What is the numeric value of False in an If Statement?


o 0

24. With regards to STEM, programming languages are most


beneficial in doing what?

o Solving problems

25. Given the following code, if the user enters the number
13, what would be the output of the program?

o 13 is Odd

26. Video games have been able to help people who have
issues with __________ to increase their mobility and range of
motion.

o dexterity

27. Which of the following would create a comment line in


Python?

o #

28. Given the following code, if the user enters the number
12, what would be the output of the program?

o 12 is Even

29. What is the term used for a loop that the computer is
unable to exit from?

o Infinite loop

30. ______ experiments conserve time, money, and resources.

o Simulated

4o

You might also like