
Let's Crack C Prelims
Flashcard
•
Computers
•
University
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Student preview

20 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Which one is a valid variable name in C? Options: @variable, 123_variable, _variable, variable#
Back
_variable
2.
FLASHCARD QUESTION
Front
What is the purpose of the 'if' statement?
Back
To control the flow of execution based on conditions.
3.
FLASHCARD QUESTION
Front
How is a function defined in C?
Back
A function in C is defined using the syntax: return_type function_name(parameter_type parameter_name) { // function body }
4.
FLASHCARD QUESTION
Front
What is the purpose of the 'switch' statement in C?
Back
To execute a block of code based on the value of a variable.
5.
FLASHCARD QUESTION
Front
What is a pointer and how is it used in C?
Back
A pointer is a variable that holds the address of another variable, used for direct memory access and manipulation in C.
6.
FLASHCARD QUESTION
Front
How do you dynamically allocate memory in C?
Back
Use 'malloc(size)' to allocate memory and 'free(pointer)' to deallocate it.
7.
FLASHCARD QUESTION
Front
What is the difference between an array and a string in C?
Back
An array is a collection of elements of the same type, while a string is a specific type of array that represents a sequence of characters terminated by a null character.
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
16 questions
Comp. 1.1, 1.4
Flashcard
•
University
15 questions
Oscar Wilde Flashcard
Flashcard
•
University - Professi...
20 questions
Anova Review
Flashcard
•
University
15 questions
Vocabulary Flashcards
Flashcard
•
University
15 questions
Tracing Lines for PK Students
Flashcard
•
KG - University
16 questions
Phytochrome, Cryptochrome, and Phototropins in Plant Biology
Flashcard
•
University
14 questions
Ancient World Map Quiz
Flashcard
•
University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
20 questions
christmas songs
Quiz
•
KG - University
20 questions
Holiday Trivia
Quiz
•
9th Grade - University
15 questions
Holiday Movies
Quiz
•
University
14 questions
Christmas Trivia
Quiz
•
3rd Grade - University
20 questions
Christmas Trivia
Quiz
•
University
8 questions
5th, Unit 4, Lesson 8
Lesson
•
KG - Professional Dev...
20 questions
Disney Trivia
Quiz
•
University