IT Quiz Round 3
Quiz
•
Computers
•
University
•
Hard
Neel (ÑËËĹ)
Used 2+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Which of the following functions initializes the allocated memory to zero?
malloc()
calloc()
realloc()
free()
2.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
How do you declare a pointer to a function that returns int and takes float as an argument?
int (*fptr)(float);
float (*fptr)(int);
int fptr(float);
float fptr(int);
3.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What is the size of s1 in the following structure on a 32-bit system? struct test { char c; int i; short s; }s1;
7
8
12
10
4.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Which of the following causes a dangling pointer?
Using malloc() without free()
Returning the address of a local variable from a function
Dereferencing a NULL pointer
Using calloc() instead of malloc()
5.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What is the best approach to prevent deadlocks in Java?
Using multiple synchronized blocks on different objects
Always acquiring locks in the same order
Using wait() without notify()
Using busy-wait loops with Thread.sleep()
6.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Which of the following is NOT a feature of object-oriented programming in Java?
Abstraction
Encapsulation
Inheritance
Multithreading
7.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
How can you create an immutable class in Java?
By making all methods final
By making the class final and ensuring that fields are final and have no setters
By marking the class as abstract
By marking the class as private
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
IWP Digital Assignment 3
Quiz
•
University
15 questions
GK Quiz
Quiz
•
University
13 questions
#include <\c>
Quiz
•
University
10 questions
2024 - Struktur Data Quiz 1
Quiz
•
University
10 questions
LOOPS IN C++
Quiz
•
10th Grade - University
10 questions
104-P-01: Delegates and lambdas
Quiz
•
University
11 questions
Recap Chapter 6, 7, 8
Quiz
•
University
6 questions
Luyện tập về NNLT
Quiz
•
University
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for Computers
10 questions
Halloween Movies Trivia
Quiz
•
5th Grade - University
12 questions
Halloween
Quiz
•
3rd Grade - University
5 questions
Using Context Clues
Interactive video
•
4th Grade - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
14 questions
Eat Healthy,Be Healty
Quiz
•
4th Grade - University
7 questions
History of Halloween: Pagan or Christian?
Interactive video
•
11th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
