
Week 4 - Compound Types in C/C++

Quiz
•
Computers
•
University
•
Medium
Hai Nguyen
Used 6+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which code is correct to create an array of 20 shorts?
short arr[20];
short int[20];
int arr[20];
int arr[] = {20};
2.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Find all correct initializations of array.
int yam[3] = {20,30,40};
int yam[] = {20,30,40};
int yam[3] {20,30,40};
int yam[] {20,30,40};
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Is the following code correct?
int my_array[4] = {1, 2, 3};
Correct
Incorrect
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Is the following code correct?
int my_array[3];
my_array[3] = {1, 2, 3};
Correct
Incorrect
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Is the following code correct?
int yam[4] = { 2, 4, 6, 8 };
int yell[4] = { 1, 3, 5, 7 };
yell = yam;
Correct
Incorrect
6.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Select all answers that declare an array of 4 integers and set all element values to 0
int yam[4] = { };
int yam[4] { };
int yam[4] = {0};
int yam[] = {0};
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output?
hi65
hiA
hi
Error
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Bootcamp Day 3 - Java Array

Quiz
•
University
23 questions
C que que que

Quiz
•
University
20 questions
C - Strings

Quiz
•
University
15 questions
Șiruri de caractere - funcții

Quiz
•
10th Grade - University
20 questions
Quizz C++ ^_^

Quiz
•
University
19 questions
C Programming Quiz

Quiz
•
University
15 questions
Common errors in C programming

Quiz
•
University
18 questions
SQL

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 Computers
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