
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
Round 1

Quiz
•
University
20 questions
TECHTRIX2025 BUGHUNT SET4

Quiz
•
University
25 questions
Conceptos básicos de C++

Quiz
•
University
15 questions
Engineer's Day Quizz'24

Quiz
•
University
20 questions
Quiz on Array

Quiz
•
University
15 questions
C Quiz

Quiz
•
University
20 questions
Orientation Quiz

Quiz
•
University
20 questions
First Meet Sains Data 2022

Quiz
•
University
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade