What is the error in the following C code?
#include

TECHTRIX2025 BUGHUNT SET6

Quiz
•
Other
•
University
•
Hard
Sarmistha Moharer
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
printf("%d", arr[2]);
printf("%d", arr[3]); (No error)
printf("%d", arr[0]);
printf("%d", arr[4]);
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What should be the correct condition in this code?
#include
if (x = 10)
if (x == 10)
if x == 10;
if (x := 10)
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Identify the correct line to fix the segmentation fault.
#include
int ptr = 10;
int *ptr = NULL;
int x = 10; int *ptr = &x;
int *ptr = 10;
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Find the correct way to swap two numbers using pointers.
#include
swap(x, y);
swap(&x, &y);
swap(*x, *y);
swap(x, *y);
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Identify the correct loop termination condition.
#include
while (i = 10)
while (i == 10)
while (i < 10)
while (i <= 10)
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output?
#include
RCCIIT
6
RCCIIT6
Error
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output?
#include
Yes
No
0
Error
Create a free account and access millions of resources
Similar Resources on Quizizz
15 questions
C Basics_1

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

Quiz
•
University
25 questions
Con trỏ

Quiz
•
University
20 questions
Đề 1 CNTT

Quiz
•
University
25 questions
c language

Quiz
•
University
20 questions
Tech-Pictionary Round 1

Quiz
•
University
20 questions
QUIZERIA

Quiz
•
University
20 questions
Round 2

Quiz
•
University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade