
CS2110 Flashcard 4 Review
Flashcard
•
Computers
•
University
•
Hard
Wayground Content
FREE Resource
Student preview

17 questions
Show all answers
1.
FLASHCARD QUESTION
Front
An array arr is declared with the C expression int arr[20];. The expression arr[21] will lead to an index-out-of-bounds error.
Back
False
2.
FLASHCARD QUESTION
Front
We want to print the address of the string str to the console using printf(). Which format string should replace the empty space in the following C expression? printf(“address: ___”, str);
Back
%p
3.
FLASHCARD QUESTION
Front
An array arr is declared with the C expression int arr[10]. What will the expression sizeof(arr) equal?
Back
The number of bytes in the entire array
4.
FLASHCARD QUESTION
Front
The following string definition using array notation is correct. char str[] = {‘n’,s ‘i’, ‘c’, ‘e’};
Back
False
5.
FLASHCARD QUESTION
Front
A struct containing a char pointer must be malloced within a function and its pointer returned. The struct is malloced successfully. The malloc call for the char pointer returns NULL. Which action will not cause any errors later on? Options: Return NULL, Free the char pointer, then return NULL, Free the struct pointer, then return NULL, Free the struct pointer, then return the struct pointer
Back
Free the struct pointer, then return NULL
6.
FLASHCARD QUESTION
Front
What does sizeof(int) return?
Back
Unknown
7.
FLASHCARD QUESTION
Front
What does this code block print?
Options:
arr[0] = 5, arr[1] = 20, arr[2] = 25, arr[3] = 20 ,
arr[0] = 5, arr[1] = 20, arr[2] = 20, arr[3] = 25 ,
arr[0] = 5, arr[1] = 20, arr[2] = 15, arr[3] = 25 ,
arr[0] = 5, arr[1] = 10, arr[2] = 15, arr[3] = 20
Back
arr[0] = 5, arr[1] = 20, arr[2] = 25, arr[3] = 20
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
9 questions
Basic Computer Actions Verbs
Flashcard
•
Professional Development
12 questions
Dog Trivia
Flashcard
•
KG - Professional Dev...
10 questions
Guess the food
Flashcard
•
KG - 12th Grade
12 questions
Computer and Photography Devices
Flashcard
•
University
13 questions
Understanding Classes and Objects
Flashcard
•
University
11 questions
CE-LP2 Noções de Linguagens Procedurais
Flashcard
•
KG - University
19 questions
AVINYA 2K25
Flashcard
•
University
10 questions
Строки и символы
Flashcard
•
KG - University
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
4 questions
Activity set 10/24
Lesson
•
6th - 8th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade
30 questions
October: Math Fluency: Multiply and Divide
Quiz
•
7th Grade
Discover more resources for Computers
10 questions
Halloween Movies Trivia
Quiz
•
5th Grade - University
7 questions
Central Idea of Informational Text
Interactive video
•
4th Grade - University
7 questions
Review for You: Using Commas
Interactive video
•
4th Grade - University
5 questions
Using Context Clues
Interactive video
•
4th Grade - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
14 questions
Eat Healthy,Be Healty
Quiz
•
4th Grade - University
7 questions
Safari Scholar: Searching for Subject-Verb Agreement
Interactive video
•
4th Grade - University