How do you declare a one-dimensional array of integers with 10 elements in C?
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
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 Quizizz
15 questions
Exploring C# Arrays and For Statements

Quiz
•
University
10 questions
Quiz na początek I semestru Wstep do programowania

Quiz
•
7th Grade - University
10 questions
Web Development Workshop

Quiz
•
University - Professi...
15 questions
Data Structures and Algorithms Quiz No.1

Quiz
•
1st Grade - Professio...
10 questions
05.02.2021 DOÇ. DR. H. NİHAL AÇIKGÖZ 1. TEST SINAVI

Quiz
•
University - Professi...
15 questions
Programming - Screening Test

Quiz
•
3rd Grade - Professio...
5 questions
aiml fast track day2

Quiz
•
University
10 questions
DAY 9 File Handling & Dynamic Memory Allocation - 20th JUNE 24

Quiz
•
University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade