
C and Java Programming Quiz
Authored by Gagan S K
Computers
University

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following program?
30 10
30 20
20 10
40 20
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is wrong with the following stack implementation?
Incorrect condition for stack overflow
Incorrect indexing for the stack
No error, the code works correctly
Stack is initialized incorrectly
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following data structures is best suited for finding the median in a stream of numbers?
Array
Doubly Linked List
Heap
Binary Search Tree
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Find the error in the following circular queue implementation:
Incorrect modulo operation
Overwriting of the first element during enqueue
Incorrect check for queue full
Logic for incrementing rear is incorrect
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The time complexity of deleting a node in a doubly linked list with n nodes, given a pointer to the node, is:
O(1)
O(n)
O(log n)
O(n log n)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following code output?
10
20
Compile-time error
Runtime error
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the issue with the following Java snippet?
Misuse of this keyword
Incorrect variable declaration
No error
Incorrect access modifier for x
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
Computer and Other Human Inventions
Quiz
•
University
15 questions
Robotics Prelim
Quiz
•
University
11 questions
SCM and Logistics
Quiz
•
University
15 questions
UIT 2221 MALWARE (COPTPA)
Quiz
•
University
10 questions
UTILITY PROGRAM
Quiz
•
University
10 questions
Data Warehouse - Foundations
Quiz
•
University
7 questions
Data mining-Clustering-1
Quiz
•
University
15 questions
GIS Unit III
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
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
20 questions
Figurative Language Review
Quiz
•
6th Grade