
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
15 questions
Mile Stone 2

Quiz
•
University
13 questions
Syntax, Logic and Runtime errors 2024

Quiz
•
10th Grade - University
10 questions
Inheritance Quiz

Quiz
•
2nd Grade - University
10 questions
Java Unit 1

Quiz
•
University
10 questions
The OOP Quiz

Quiz
•
University
12 questions
Chapter 1

Quiz
•
University
15 questions
Object-Oriented Programming Quiz

Quiz
•
University
10 questions
Week 9 C# (for Java programmers)

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