
Basics of C and DS
Quiz
•
Education
•
University
•
Hard
Yelipe Rishi
Used 3+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a correct syntax to declare a variable in C?
A) int num;
B) int = num;
C) num int;
D) variable int;
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
2.What does the sizeof operator do in C?
A) Returns the size of a variable in bytes
B) Returns the size of a variable in bits
C) Allocates memory dynamically
D) None of the above
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
3.Which function is used to get input from the user in C?
A) scanf()
B) printf()
C) input()
D) gets()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
4.What is the correct way to declare a pointer to an integer in C?
A) int *ptr;
B) pointer int ptr;
"C) int ptr*;
D) int ptr;
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
5.Which operator is used to access a member of a structure through a pointer?
A) . (dot operator)
B) -> (arrow operator)
C) & (address-of operator)
D) * (dereference operator)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
6.What is the time complexity of accessing an element in an array?
A) O(1)
B) O(n)
C) O(log n)
D) O(n^2)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
7.In a singly linked list, which operation is performed in O(1) time complexity?
A) Inserting at the end
B) Deleting from the beginning
C) Accessing an element by index
D) Inserting at a specific position
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
15 questions
SMED and POKA YOKE
Quiz
•
University
12 questions
Front office Organization
Quiz
•
University
10 questions
Module 1- Python Basics_2nd_Semester
Quiz
•
University
20 questions
Repaso general Lenguajes de Programación II
Quiz
•
University
15 questions
Айнымалылармен жұмыс
Quiz
•
University
15 questions
K3LH
Quiz
•
University
20 questions
Quiz
Quiz
•
University
20 questions
PL SQL
Quiz
•
University - Professi...
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
Discover more resources for Education
11 questions
NFL Football logos
Quiz
•
KG - Professional Dev...
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms
Quiz
•
11th Grade - University
38 questions
Unit 6 Key Terms
Quiz
•
11th Grade - University
20 questions
La Hora
Quiz
•
9th Grade - University
7 questions
Cell Transport
Interactive video
•
11th Grade - University
7 questions
What Is Narrative Writing?
Interactive video
•
4th Grade - University