DAY 4 - Arrays & String Assessment _14 June 24

Quiz
•
Professional Development
•
University
•
Medium
KVCH CORPORATE
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you declare a one-dimensional array of integers with 10 elements in C?
int array[10];
int array(10);
int array{10};
int array;
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
is the index of the last element in a one-dimensional array with 5 elements?
4
5
0
1
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you access the element at the second row and third column of a two-dimensional array arr?
arr[2][3]
arr[1][2]
arr[3][2]
arr[2, 3]
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following C code snippet?
1
2
3
Compilation error
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax to initialize a two-dimensional array in C?
int arr[2][3] = {{1, 2, 3}, {4, 5, 6}};
int arr[2, 3] = {1, 2, 3, 4, 5, 6};
int arr{2, 3} = {1, 2, 3, 4, 5, 6};
int arr[2][3] = {1, 2, 3, 4, 5, 6};
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you declare a string in C?
char str[10];
string str;
char str;
str[10] = char;
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to initialize a string with the value "Hello"?
char str[] = "Hello";
char str[] = {'H', 'e', 'l', 'l', 'o'};
char str[5] = "Hello";
char str[5] = {'H', 'e', 'l', 'l', 'o'};
Create a free account and access millions of resources
Similar Resources on Wayground
7 questions
Quiz 12: Inheritance

Quiz
•
University
10 questions
Arrays - 2D

Quiz
•
University
14 questions
LAB 2 Quiz

Quiz
•
University
14 questions
3. Arrays Q (Java Introduction)

Quiz
•
University
15 questions
DAY 7 Pointer Structure & Union - 18th June 2024

Quiz
•
University
12 questions
CMR Kingston - Les véhicules des 3 éléments des FAC

Quiz
•
University
12 questions
S1.25 BUSM4568 Week 3 Rooms Division Management

Quiz
•
University
12 questions
Rust Variables

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Professional Development
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University