Which of the following type of a variable is volatile?
Final Results
26%
Mutable variable
24%
Dynamic variable
33%
Volatile variable
17%
Immutable variable
Coding interview preparation
Which of the following type of a variable is volatile?
This question is pretty weirdly formed so i will stop the poll and explain it more clearly.
Sometimes we use variables in loops and in parallel execution (so variable is accessed and changed by different threads). Compiler tends to do some optimizations on our variables and cache their value so they could be accessed faster. But in parallel execution, caching variables values is not smart thing to do, because one thread might not see changes done by some other thread. That' why we use volatile keyword, to tell the compiler that the value of a variable must never be cached as its value may change outside of the scope of the program itself (for example in embedded systems, some variables can be changed by external processes and our program need to be aware of change at any point of time).
I guess that's the reason why "mutable variable" is the right answer, but other answers could be ambiguous. I hope this explanation was clear enough. If you have any questions feel free to contact me.
Sometimes we use variables in loops and in parallel execution (so variable is accessed and changed by different threads). Compiler tends to do some optimizations on our variables and cache their value so they could be accessed faster. But in parallel execution, caching variables values is not smart thing to do, because one thread might not see changes done by some other thread. That' why we use volatile keyword, to tell the compiler that the value of a variable must never be cached as its value may change outside of the scope of the program itself (for example in embedded systems, some variables can be changed by external processes and our program need to be aware of change at any point of time).
I guess that's the reason why "mutable variable" is the right answer, but other answers could be ambiguous. I hope this explanation was clear enough. If you have any questions feel free to contact me.
Top 55 Blockchain Interview Questions You Must Prepare In 2022
Blockchain is the latest buzz words in the market. Bitcoin is great, but the potential of the underlying technology is immense. Something that started as an evolution is soon going to cause a revolution. Investors are cashing in huge amount because they understand the fortune of this ingenious technology is pretty bright. Industry experts and tech enthusiasts are coming up with the blockchain-based products every next day. So wait not, and get industry-ready with these Blockchain Interview Questions.
πArticle Link
Blockchain is the latest buzz words in the market. Bitcoin is great, but the potential of the underlying technology is immense. Something that started as an evolution is soon going to cause a revolution. Investors are cashing in huge amount because they understand the fortune of this ingenious technology is pretty bright. Industry experts and tech enthusiasts are coming up with the blockchain-based products every next day. So wait not, and get industry-ready with these Blockchain Interview Questions.
πArticle Link
Edureka
Top 55 Blockchain Interview Questions and Answers in 2025 | Edureka
This blog on Blockchain Interview Questions and Answers will prepare you to ace all the Blockchain developers Interviews.
Which of the following is the first operating system developed using C programming language?
Anonymous Quiz
26%
Windows
38%
Uinux
33%
DOS
3%
Mac
π3
twowaits/SDE-Interview-Questions
Most comprehensive list π of tech interview questions π of companies scraped from Geeksforgeeks, CareerCup and Glassdoor.
Creator: Twowaits
Stars βοΈ: 6.3k
Forked By : 1.9k
GitHub Repo: https://github.com/twowaits/SDE-Interview-Questions
#SDE
ββββββββββββββ
Join @coding_interview_preparation for more interview questions.
*This channel belongs to @bigdataspecialist group
Most comprehensive list π of tech interview questions π of companies scraped from Geeksforgeeks, CareerCup and Glassdoor.
Creator: Twowaits
Stars βοΈ: 6.3k
Forked By : 1.9k
GitHub Repo: https://github.com/twowaits/SDE-Interview-Questions
#SDE
ββββββββββββββ
Join @coding_interview_preparation for more interview questions.
*This channel belongs to @bigdataspecialist group
GitHub
GitHub - twowaits/SDE-Interview-Questions: Most comprehensive list of tech interview questions of companies scraped from Geeksforgeeksβ¦
Most comprehensive list :clipboard: of tech interview questions :blue_book: of companies scraped from Geeksforgeeks, CareerCup and Glassdoor. - GitHub - twowaits/SDE-Interview-Questions: Most comp...
Which of the following is the correct syntax of including a user defined header files in C++?
Anonymous Quiz
6%
#include [userdefined]
17%
#include βuserdefinedβ
60%
#include <userdefined.h>
17%
#include <userdefined>
Design Pattern Interview Questions that have been designed specially to get you acquainted with the nature of questions you may encounter during your interview for the subject of Design Pattern
these Design Pattern Interview Questions have been designed specially to get you acquainted with the nature of questions you may encounter during your interview for the subject of Design Pattern. As per my experience good interviewers hardly plan to ask any particular question during your interview, normally questions start with some basic concept of the subject and later they continue based on further discussion and what you answer.
πArticle Link
these Design Pattern Interview Questions have been designed specially to get you acquainted with the nature of questions you may encounter during your interview for the subject of Design Pattern. As per my experience good interviewers hardly plan to ask any particular question during your interview, normally questions start with some basic concept of the subject and later they continue based on further discussion and what you answer.
πArticle Link
Tutorialspoint
Design Pattern - Interview Questions
Design Pattern - Interview Questions - Dear readers, these Design Pattern Interview Questions have been designed specially to get you acquainted with the nature of questions you may encounter during your interview for the subject of Design Pattern. As perβ¦
Which component is used to compile, debug and execute the java programs?
Anonymous Quiz
16%
JRE
49%
JDK
6%
JIT
29%
JVM
mre/the-coding-interview
Programming exercises, code katas and puzzles for your job interview training - or just for fun.
Creator: mre Matthias
Stars βοΈ: 1.5k
Forked By : 396
GitHub Repo: https://github.com/mre/the-coding-interview
#Programming
ββββββββββββββ
Join @coding_interview_preparation for more interview questions.
*This channel belongs to @bigdataspecialist group
Programming exercises, code katas and puzzles for your job interview training - or just for fun.
Creator: mre Matthias
Stars βοΈ: 1.5k
Forked By : 396
GitHub Repo: https://github.com/mre/the-coding-interview
#Programming
ββββββββββββββ
Join @coding_interview_preparation for more interview questions.
*This channel belongs to @bigdataspecialist group
GitHub
GitHub - mre/the-coding-interview: Programming exercises, code katas and puzzles for your job interview training - or just forβ¦
Programming exercises, code katas and puzzles for your job interview training - or just for fun. - mre/the-coding-interview
π₯°2
Which of the following is not the application of stack?
Anonymous Quiz
19%
A parentheses balancing program
19%
Tracking of local variables at run time
25%
Compiler Syntax Analyzer
37%
Data Transfer between two asynchronous process
π4
Top 15 Data Structures and Algorithm Interview Questions Answers for Java Programmer
Data structures and algorithm questions are an important part of any programming job interview, be it a Java interview, a C++ interview, or any other programming language. Since data structures are core programming concepts, it's mandatory for all programmers, to know basic data structures like the stack, linked list, queue, array, tree, and graph. Though trees and graphs are on the tougher side, I still see programmers get familiar will all these. This is a combined list of questions from the various data structures e.g. array, linked list, stack, or queue. It includes some coding questions as well, which gel with data structures.
πArticle Link
Data structures and algorithm questions are an important part of any programming job interview, be it a Java interview, a C++ interview, or any other programming language. Since data structures are core programming concepts, it's mandatory for all programmers, to know basic data structures like the stack, linked list, queue, array, tree, and graph. Though trees and graphs are on the tougher side, I still see programmers get familiar will all these. This is a combined list of questions from the various data structures e.g. array, linked list, stack, or queue. It includes some coding questions as well, which gel with data structures.
πArticle Link
Blogspot
Top 15 Data Structures and Algorithm Interview Questions Answers for Java Programmer
A blog about Java, Programming, Algorithms, Data Structure, SQL, Linux, Database, Interview questions, and my personal experience.
π2
Which of the following option is used as hexadecimal literal beginning?
Anonymous Quiz
12%
00
31%
0x
20%
0X
37%
Both 0x and 0X
π1
h5bp/Front-end-Developer-Interview-Questions
A list of helpful front-end related questions you can use to interview potential candidates, test yourself or completely ignore.
Creator: H5BP
Stars βοΈ: 55.4k
Forked By : 10.7k
GitHub Repo: https://github.com/h5bp/Front-end-Developer-Interview-Questions
#front_end
ββββββββββββββ
Join @coding_interview_preparation for more interview questions.
*This channel belongs to @bigdataspecialist group
A list of helpful front-end related questions you can use to interview potential candidates, test yourself or completely ignore.
Creator: H5BP
Stars βοΈ: 55.4k
Forked By : 10.7k
GitHub Repo: https://github.com/h5bp/Front-end-Developer-Interview-Questions
#front_end
ββββββββββββββ
Join @coding_interview_preparation for more interview questions.
*This channel belongs to @bigdataspecialist group
GitHub
GitHub - h5bp/Front-end-Developer-Interview-Questions: A list of helpful front-end related questions you can use to interview potentialβ¦
A list of helpful front-end related questions you can use to interview potential candidates, test yourself or completely ignore. - h5bp/Front-end-Developer-Interview-Questions
π1π1
Top 100 Networking Interview Questions & Answers from Career Guru
Here are Networking interview questions and answers for fresher as well as experienced candidates to get their dream job.
1) What is a Link?
2) What are the layers of the OSI reference model?
3) What is the backbone network?
4) What is a LAN?
5) What is a node?
πArticle Link
Here are Networking interview questions and answers for fresher as well as experienced candidates to get their dream job.
1) What is a Link?
2) What are the layers of the OSI reference model?
3) What is the backbone network?
4) What is a LAN?
5) What is a node?
πArticle Link
Guru99
100+ Networking Interview Questions and Answers (2025)
1) What is a Link? A link refers to the connectivity between two devices. It includes the type of cables and protocols used in order for one device to be able to communicate with the other.
Which of the following is used for
Anonymous Quiz
22%
/* comment */
3%
// comment */
11%
// comment
64%
both // comment or /* comment */
101 IT Security Interview Questions
The following IT security interview questions are at the architectural level. They may be of use for interviewing:
βοΈ Security Architects
βοΈ Security Specialists (e.g. Network Security Administrators)
βοΈ IT Executives
βοΈ Enterprise Architects
βοΈ IT Managers
βοΈ Solution Architects
The questions range greatly in difficulty and should be tailored to each role.
πArticle Link
The following IT security interview questions are at the architectural level. They may be of use for interviewing:
βοΈ Security Architects
βοΈ Security Specialists (e.g. Network Security Administrators)
βοΈ IT Executives
βοΈ Enterprise Architects
βοΈ IT Managers
βοΈ Solution Architects
The questions range greatly in difficulty and should be tailored to each role.
πArticle Link
Simplicable
101 IT Security Interview Questions
Information security interview questions (at the architectural level).
π4
Which one of the following is not a Java feature?
Anonymous Quiz
9%
Object-oriented
59%
Use of pointers
20%
Portable
12%
Dynamic and extensible
π1
Data Science Interview Questions for Top Tech Companies
List of data science interview questions for 2018 asked in the job interviews for the position of Data Scientist at top tech companies like Facebook, Google.
Data Science has become an integral part of making crucial business decisions in todayβs competitive market. This is one of the reasons companies are on a rampage to hire Data Scientists and qualified ones at that. The data science job interviews at companies like Facebook, Google, LinkedIn, AirBnB, Insight, Twitter, Mu Sigma have one thing in common β these interviews are tough. But we have a list of helpful data science interview questions from these companies that will help while someone is preparing to apply for the post of a Data Scientist.
Last Updated: 14 Sep 2022
πArticle Link
List of data science interview questions for 2018 asked in the job interviews for the position of Data Scientist at top tech companies like Facebook, Google.
Data Science has become an integral part of making crucial business decisions in todayβs competitive market. This is one of the reasons companies are on a rampage to hire Data Scientists and qualified ones at that. The data science job interviews at companies like Facebook, Google, LinkedIn, AirBnB, Insight, Twitter, Mu Sigma have one thing in common β these interviews are tough. But we have a list of helpful data science interview questions from these companies that will help while someone is preparing to apply for the post of a Data Scientist.
Last Updated: 14 Sep 2022
πArticle Link
ProjectPro
2024 Data Science Interview Questions for Top Tech Companies
List of data science interview questions for 2024 asked in the job interviews for the position of Data Scientist at top tech companies like Facebook, Google.
π₯2π1
Consider the usual algorithm for determining whether a sequence of parentheses is balanced. The maximum number of parentheses that appear on the stack AT ANY ONE TIME when the algorithm analyzes: (()(())(()))?
Anonymous Quiz
12%
1
24%
2
32%
3
32%
4 or more
π₯°3