
Module1_Quiz
Quiz
•
Computers
•
University
•
Hard
Guruvammal S
Used 1+ times
FREE Resource
Enhance your content in a minute
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a characteristic of static arrays?
Size can be changed at runtime
Size must be known at compile time
Memory is allocated dynamically
None of the above
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you initialize an array in C?
int arr(5) = {1, 2, 3};
int arr[5] = {1, 2, 3};
int arr = {1, 2, 3};
int arr[5];
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code? int arr[] = {1, 2, 3}; printf("%d", arr[1]);
1
2
3
Compilation error
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a pointer in C?
A variable that holds data values.
A variable that holds the address of another variable.
A type of function.
A type of array.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which operator is used to access the value at the address stored in a pointer? int* ptr; What operator should be used?
&
*
->
[]
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If you have an integer variable x, how do you assign its address to a pointer p? int x; What should be done?
&x
*x
x
x&
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will happen if you dereference an uninitialized pointer? int* p; printf("%d", *p); What type of error will occur?
Syntax error
Runtime error (undefined behavior)
Compilation error
No error; it will print garbage value.
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
15 questions
Basic IT Quiz
Quiz
•
University
20 questions
Arquitectura de computadoras I
Quiz
•
University
15 questions
Round 4 - Harvest
Quiz
•
University
20 questions
SPCC ISE 2 Quiz TE B
Quiz
•
University
20 questions
PSTS INFORMATIKA X
Quiz
•
10th Grade - University
19 questions
Bases de Datos
Quiz
•
University
15 questions
SENATIC Parcial Guía 3_PseInt
Quiz
•
10th Grade - University
17 questions
Lección1 - JavaScript
Quiz
•
1st Grade - Professio...
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for Computers
10 questions
Halloween Movies Trivia
Quiz
•
5th Grade - University
12 questions
Halloween
Quiz
•
3rd 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
History of Halloween: Pagan or Christian?
Interactive video
•
11th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
