
Year-3
Authored by THEJASRINI 23ADR178
Computers
University

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code?
int arr[] = {1, 2, 3, 4, 5};
int *ptr = arr;
printf("%d", *(ptr + 3));
1
3
4
Compilation Error
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following code snippet do?
int x = 5;
int *ptr = &x;
(*ptr)++;
printf("%d", x);
Increments the value of x by 1
Decrements the value of x by 1
Gives an error
Does nothing
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which sorting algorithm has the worst-case time complexity of ?
Merge Sort
Quick Sort
Bubble Sort
Heap Sort
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code?
void function(int arr[], int n) {
for (int i = 0; i < n; i++) {
arr[i] += 5;
}
}
int main() {
int arr[] = {1, 2, 3};
function(arr, 3);
printf("%d", arr[1]);
return 0;
}
2
7
3
Compilation Error
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is true about a struct in C?
Members of a struct are allocated contiguous memory by default.
Struct can contain only primitive types.
Struct members can be accessed using dot (.) and arrow (->) operators.
Struct can be used to implement inheritance.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax for defining a template class in C++?
template<class T>
class template<T>
template<class>
template(T)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a valid feature in C++?
Friend Function
Operator Overloading
Multiple Inheritance
Garbage Collection
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
20 questions
Infrastructure (Network)
Quiz
•
University
20 questions
Computación 1ro y 2do básico
Quiz
•
1st Grade - University
20 questions
C Quest 2.0
Quiz
•
University
20 questions
PHP First Internal Practical Viva
Quiz
•
University
20 questions
quizz tkinter
Quiz
•
11th Grade - University
20 questions
EXAMEN
Quiz
•
University
20 questions
Social Issues and Professional Practices Midterm Exam
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
10 questions
Probability Practice
Quiz
•
4th Grade
15 questions
Probability on Number LIne
Quiz
•
4th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
6 questions
Appropriate Chromebook Usage
Lesson
•
7th Grade
10 questions
Greek Bases tele and phon
Quiz
•
6th - 8th Grade
Discover more resources for Computers
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
20 questions
Endocrine System
Quiz
•
University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
30 questions
W25: PSYCH 250 - Exam 2 Practice
Quiz
•
University
5 questions
Inherited and Acquired Traits of Animals
Interactive video
•
4th Grade - University
20 questions
Implicit vs. Explicit
Quiz
•
6th Grade - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University
38 questions
Unit 8 Review - Absolutism & Revolution
Quiz
•
10th Grade - University