
Mastering Programming Concepts
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
Mr. Gogoi
FREE Resource
Enhance your content in a minute
27 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the time complexity of accessing an element in an array?
O(n^2)
O(log n)
O(1)
O(n)
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid declaration of a pointer in C?
int ptr;
float *ptr = NULL;
char ptr;
int *ptr;
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code: int a = 5; printf('%d', a++);?
5.0
5
4
6
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the primary purpose of a stack data structure?
To store data in a First In, First Out (FIFO) manner.
To maintain a sorted list of elements.
To manage data in a Last In, First Out (LIFO) manner.
To allow random access to elements in any order.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In C, how do you declare a function that returns an integer?
void functionName() {}
int functionName() {}
int functionName[] {}
function intName() {}
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following code print? int x = 10; printf('%d', ++x);
x
12
10
11
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data structure uses LIFO (Last In, First Out) principle?
Queue
Linked List
Stack
Array
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
24 questions
Ads Final1
Quiz
•
University
24 questions
Rally
Quiz
•
University
25 questions
Animation Quiz1
Quiz
•
University
25 questions
Conocimiento de Sentencias SQL
Quiz
•
University
25 questions
¿Sabes más que un estudiante de avanzada? 2023-1
Quiz
•
University
25 questions
8-2 PTS INFORMATIKA
Quiz
•
8th Grade - University
25 questions
Quiz on Emotional Interaction
Quiz
•
University
22 questions
Quiz Pertemuan 1 Pengantar Sumber Daya Komputer
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
