Coding club Summit Online Quiz

Quiz
•
Computers
•
University
•
Hard
Amburu Kumar
Used 6+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
In C, what is the purpose of the restrict keyword
Specifies that a pointer is the only pointer to the data
Allocates memory dynamically
Declares a variable as a constant
Specifies that a variable cannot be modified
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the primary use of the setjmp and longjmp functions in C
Memory allocation
Exception handling
Dynamic linking
File I/O operations
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the following C code?
#include <stdio.h>
void main()
{
int a[3] = {1, 2, 3};
int *p = a;
printf("%p\t%p", p, a);
}
Same address is printed
Different address is printed
Compile time error
Nothing
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the following code snippet?
#include <stdio.h>
int main() {
int a, b = 5;
a = b + NULL;
printf("%d", a);
return 0;
}
Compilation Error
Runtime Error
Logical Error
None of these
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of the following code snippet?
#include <stdio.h>
int main() {
int x = 10;
int *ptr = &x;
printf("%d", *ptr);
return 0;
}
Memory address of x
10
Compilation error
None of these
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the following C code?
void main() {
char *p;
p = "Hello";
printf("%c\n", &p);
}
Hello
E
Some address will be printed
None of these
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the following C code?
#include <stdio.h>
int main()
{
int i = 97, *p = &i;
ABC(&i);
printf("%d ", *p);
}
void ABC(int *p)
{
int j = 2;
p = &j;
printf("%d ", *p);
}
2 97
2 2
Compile time error
Segmentation fault/code crash
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Basic C Knowledge Exercise

Quiz
•
University
10 questions
unidad4

Quiz
•
University
20 questions
UNIT 1 PYTHON

Quiz
•
University
20 questions
Linux 3-4

Quiz
•
University
16 questions
De todo

Quiz
•
1st Grade - Professio...
20 questions
ROUND 1 QUIZ FOR 1ST YEAR

Quiz
•
University
20 questions
Programming in C(1)

Quiz
•
University
20 questions
C Programming Unit-1 Test-2

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University