
TECHTRIX2025 BUGHUNT SET5
Authored by Sarmistha Moharer
Other
University

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What's the correct replacement for the faulty line?
#include
char ptr[] = "Hello";
ptr[0] = 'h';
char *ptr = strdup("Hello");
Both A and C
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What’s the correct way to allocate memory? int *arr; arr = malloc(5 * sizeof(int)); What should be done before using arr?
if (arr == NULL) exit(1);
memset(arr, 0, sizeof(arr));
free(arr);
Nothing, malloc never fails
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What’s wrong with this pointer code?
#include
val goes out of scope
p is uninitialized
No error
Memory leak
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What’s the output?
#include
5
10
11
Error
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be printed?
#include
10
11
Error
Undefined behavior
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What does this bitwise code print?
#include
5
1
-5
0
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Find the output.
#include
0
2
Undefined
10
Access all questions and much more by creating a free account
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
20 questions
Control systems I(Viscosity controller & OMD)
Quiz
•
University
20 questions
LU 6 Auditing General & application controls quiz
Quiz
•
University
15 questions
MIS Chapter 6 Review
Quiz
•
University
15 questions
Creación del Valor Orientado al Servicio TFG
Quiz
•
University
20 questions
Quanta
Quiz
•
University
20 questions
Measuring National Income and Output
Quiz
•
University
20 questions
QUIZ WEEK 6
Quiz
•
University
15 questions
Ingreso U - Razonamiento verbal (PRECISIÓN SEMÁNTICA) 15-2-23
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
10 questions
Probability Practice
Quiz
•
4th Grade
15 questions
Probability on Number LIne
Quiz
•
4th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
6 questions
Appropriate Chromebook Usage
Lesson
•
7th Grade
10 questions
Greek Bases tele and phon
Quiz
•
6th - 8th Grade
Discover more resources for Other
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
20 questions
Endocrine System
Quiz
•
University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
30 questions
W25: PSYCH 250 - Exam 2 Practice
Quiz
•
University
5 questions
Inherited and Acquired Traits of Animals
Interactive video
•
4th Grade - University
20 questions
Implicit vs. Explicit
Quiz
•
6th Grade - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University
38 questions
Unit 8 Review - Absolutism & Revolution
Quiz
•
10th Grade - University