DAY 4 - Arrays & String Assessment _14 June 24
Quiz
•
Professional Development
•
University
•
Practice Problem
•
Medium
KVCH CORPORATE
Used 1+ times
FREE Resource
Enhance your content in a minute
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
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
PHP BASIC
Quiz
•
University
10 questions
DAY 22 MySQL: Constraints, Normalization (9th JULY 24)
Quiz
•
University
12 questions
Lógica de progrmación
Quiz
•
University
15 questions
DAY 30 Graph Representation & Traversal - 19th July 2024
Quiz
•
University
11 questions
BECAS UNA
Quiz
•
University - Professi...
13 questions
1 Corinthian 12
Quiz
•
University
15 questions
JavaScript Basics
Quiz
•
12th Grade - University
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
