
C and Java Programming Quiz

Quiz
•
Computers
•
University
•
Hard
Gagan S K
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Quiz on OOPs- Day 1 (30-01-2025)

Quiz
•
University
9 questions
Object Oriented Programming

Quiz
•
University
15 questions
C++ Quiz-1

Quiz
•
University
7 questions
Chapter 1 : Introduction of OOP

Quiz
•
University
15 questions
Object Oriented Programming Assessment 1

Quiz
•
University
10 questions
3CSE2 understanding Java Abstract Classes 2024

Quiz
•
University
13 questions
Java Basics for Grade 13 Students

Quiz
•
University
10 questions
Dart

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University