
Mastering Programming Concepts

Quiz
•
Computers
•
University
•
Hard
Mr. Gogoi
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
30 questions
Quiz'O Mania Round 1

Quiz
•
University
30 questions
Pengantar Algoritma dan Struktur Data

Quiz
•
University
25 questions
EC8393 - Fundamentals of Data Structures in C

Quiz
•
University
25 questions
C -Program Test-VAC-28.10.23

Quiz
•
University
23 questions
Beginning C Programming

Quiz
•
University
30 questions
Round_1 (B)| Coding Combat 2.0

Quiz
•
University
25 questions
Quiz Bahasa C

Quiz
•
10th Grade - University
25 questions
TECH_IQ_HUNT ROUND

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