
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
15 questions
PRELIMINARY ESTIMATING METHOD
Quiz
•
University
20 questions
Quiz Procedure & Function PL/SQL 7 Juni 2022
Quiz
•
University
20 questions
Chapter 6: Partnership
Quiz
•
University
16 questions
Quizz Perkembangan Peserta Didik
Quiz
•
University
20 questions
DSL-202 Chap 18: Governors
Quiz
•
University
20 questions
Kuis 2 Pasar Uang dan Pasar Modal
Quiz
•
University
15 questions
brainyclassid - TOEFL Preview Test
Quiz
•
University
15 questions
Ingreso a la U. RV Resolviendo pruebas de admisión 8 15-07-2024
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
Discover more resources for Other
7 questions
How James Brown Invented Funk
Interactive video
•
10th Grade - University
5 questions
Helping Build the Internet: Valerie Thomas | Great Minds
Interactive video
•
11th Grade - University
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
19 questions
Review2-TEACHER
Quiz
•
University
15 questions
Pre2_STUDENT
Quiz
•
University
20 questions
Ch. 7 Quadrilateral Quiz Review
Quiz
•
KG - University