
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
Similar Resources on Wayground
15 questions
7517 01 Programming Basics

Flashcard
•
10th Grade - University
17 questions
Root Word Meanings Flashcard

Flashcard
•
12th Grade
16 questions
Input Devices

Flashcard
•
11th Grade
20 questions
Let's Crack C Prelims

Flashcard
•
University
15 questions
Understanding Arrays in Python and Numpy

Flashcard
•
University
14 questions
Microsoft Excel Vocab Flashcard #1

Flashcard
•
KG - University
7 questions
Dog breed groups

Flashcard
•
KG - Professional Dev...
15 questions
Latin/Greek Final Exam Review

Flashcard
•
12th Grade
Popular Resources on Wayground
10 questions
SR&R 2025-2026 Practice Quiz

Quiz
•
6th - 8th Grade
30 questions
Review of Grade Level Rules WJH

Quiz
•
6th - 8th Grade
6 questions
PRIDE in the Hallways and Bathrooms

Lesson
•
12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
3rd Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
15 questions
Subtracting Integers

Quiz
•
7th Grade
Discover more resources for Computers
15 questions
Let's Take a Poll...

Quiz
•
9th Grade - University
2 questions
Pronouncing Names Correctly

Quiz
•
University
34 questions
WH - Unit 2 Exam Review -B

Quiz
•
10th Grade - University
21 questions
Mapa países hispanohablantes

Quiz
•
1st Grade - University
10 questions
Transition Words

Quiz
•
University
5 questions
Theme

Interactive video
•
4th Grade - University
25 questions
Identifying Parts of Speech

Quiz
•
8th Grade - University
10 questions
Spanish Greetings and Goodbyes!

Lesson
•
6th Grade - University