1) The values in an array: (Select 3) a) must be of the same data type b) can be of any data type c) are stored across separated out memory locations d) are stored in adjacent memory locations e) are accessed by their index, starting at 1 f) are accessed by their index, starting at 0 2) Which of these are a valid way to declare and initialize and array a) let myArray = [2, 4, 6, 8]; b) const myArray = [2, 4, 6, 8]; c) var myArray = [2, 4, 6, 8]; d) let myArray = {2, 4, 6, 8}; e) let myArray = ['rabbit', 4, 6, 'cat']; f) let myArray = [true, true, true, false]; 3) Which way is the right way to access a specific element of an array? a) scores[0] b) scores{0} c) scores[0, 1] d) scores<0> 4) Which is the right way to get a count of the number of elements in an array? a) myArray.size b) myArray.length() c) myArray.size() d) myArray.length; 5) Which is the right way to add an element to the end of an array? a) myArray.pop(4); b) myArray.add(4); c) myArray.push(4); d) myArray.stack(4); 6) Which is the right way to remove the element at the end of an array? a) myArray.pop(); b) myArray.pop(4); c) myArray.push(4); d) myArray.remove();
0%
Arrays
שתף
שתף
שתף
על ידי
Alimanji5
High School
Computer Science
Math
Science
עריכת תוכן
הדפסה
הטבעה
עוד
הקצאות
לוח תוצאות מובילות
הצג עוד
הצג פחות
לוח התוצאות הזה הוא כרגע פרטי. לחץ
שתף
כדי להפוך אותו לציבורי.
לוח תוצאות זה הפך ללא זמין על-ידי בעל המשאב.
לוח תוצאות זה אינו זמין מכיוון שהאפשרויות שלך שונות מאשר של בעל המשאב.
אפשרויות חזרה
חידון
היא תבנית פתוחה. זה לא יוצר ציונים עבור לוח התוצאות.
נדרשת כניסה
סגנון חזותי
גופנים
נדרש מנוי
אפשרויות
החלף תבנית
הצג הכל
תבניות נוספות יופיעו במהלך המשחק.
תוצאות פתוחות
העתק קישור
קוד QR
מחיקה
האם לשחזר את הנתונים שנשמרו באופן אוטומטי:
?