--This Question Carries 2 Marks--
void main() {
char c[ ] = "IATEBURGER";
int x= ; int y= ; char *p = c;
printf("%s",p+p[x]-p[y]); }
What are the missing values of x and y to print output? BURGER
NECTS- Code Debugging Elimination Round
Quiz
•
Computers
•
Professional Development
•
Hard
Rajendra Rajendra
Used 12+ times
FREE Resource
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 2 pts
--This Question Carries 2 Marks--
void main() {
char c[ ] = "IATEBURGER";
int x= ; int y= ; char *p = c;
printf("%s",p+p[x]-p[y]); }
What are the missing values of x and y to print output? BURGER
a) x=1,y=1
b) x=3 ,y=3
c) x=1 ,y=3
d) x=3 ,y=1
2.
MULTIPLE CHOICE QUESTION
3 mins • 3 pts
--This Question Carries 3 Marks--
int main() {
int arr[] = {1, 7, 3, 1, 7, 4, 3};
int n = sizeof(arr) / sizeof(arr[0]);
int result = 0;
for (int i = 0; i < n; i++) {
result =
}
int missingNumber = result;
printf("The missing number is: %d\n", missingNumber);
return 0;
}
In the above code add the missing code of result to get the distinct element of the array.
a) result &=arr[I];
b) result ^=arr[I];
c) result &&=arr[I];
d) result |=arr[I];
3.
MULTIPLE CHOICE QUESTION
5 mins • 5 pts
--This Question Carries 5 Marks--
int r(){
static int num=7;
return num--; }
int main() {
for (r();r();r())
printf("%d",r());
return 0; }
a) 52
b) 51
c) 49
d) Error
4.
MULTIPLE CHOICE QUESTION
5 mins • 5 pts
a) arr[i+1] = arr[i]
b) arr[j] = arr[j+1]
c) arr[i] = arr[i+1]
d) arr[j+1] = arr[j]
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
a) set(array_nums)
b) list(array_nums)
c) dict(array_nums)
d) tuple(array_nums)
10 questions
C Programming Quiz
Quiz
•
Professional Development
10 questions
Kuis Array
Quiz
•
Professional Development
10 questions
Structure Data Review
Quiz
•
University - Professi...
5 questions
Python - Numpy Quiz 3
Quiz
•
University - Professi...
10 questions
Prueba Diagnostica Modulo 2
Quiz
•
Professional Development
5 questions
Python - Numpy Quiz 2
Quiz
•
University - Professi...
10 questions
c programming-Test 1
Quiz
•
Professional Development
10 questions
Quiz on Data Structures
Quiz
•
Professional Development
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