
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
10 questions
HT3.2- Validation and Reliability
Quiz
•
8th Grade - University
10 questions
Understanding Email, Contacts and Calendaring
Quiz
•
University
12 questions
Python Quiz 1.4
Quiz
•
University
10 questions
Tree and Planar Graph
Quiz
•
University
10 questions
CodeMonkey for B.Ed IT
Quiz
•
University
10 questions
Android
Quiz
•
University
10 questions
TOOLS FOR AD & TECHNOLOGY DEVELOPMENT (W4-W6)
Quiz
•
University
15 questions
HTML
Quiz
•
University - Professi...
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
20 questions
christmas songs
Quiz
•
KG - University
20 questions
Holiday Trivia
Quiz
•
9th Grade - University
15 questions
Holiday Movies
Quiz
•
University
14 questions
Christmas Trivia
Quiz
•
3rd Grade - University
20 questions
Christmas Trivia
Quiz
•
University
8 questions
5th, Unit 4, Lesson 8
Lesson
•
KG - Professional Dev...
20 questions
Disney Trivia
Quiz
•
University