
TECHTRIX2025 BUGHUNT SET5

Quiz
•
Other
•
University
•
Hard
Sarmistha Moharer
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
OODP FT-1

Quiz
•
University
15 questions
TCDN2 (1.2)

Quiz
•
University
25 questions
Round 2- Syntax ShowDown

Quiz
•
University
16 questions
C Programming Quiz

Quiz
•
University
15 questions
PSUP

Quiz
•
University
20 questions
Kelas PHP

Quiz
•
University
18 questions
MIDTERM EXAM

Quiz
•
University
15 questions
Qcm java

Quiz
•
University
Popular Resources on Wayground
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns

Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Other
11 questions
NFL Football logos

Quiz
•
KG - Professional Dev...
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
38 questions
Unit 6 Key Terms

Quiz
•
11th Grade - University
20 questions
La Hora

Quiz
•
9th Grade - University
7 questions
Cell Transport

Interactive video
•
11th Grade - University
7 questions
What Is Narrative Writing?

Interactive video
•
4th Grade - University