Programology – Telegram
Programology
7.28K subscribers
1.94K photos
771 videos
6 files
2.08K links
Pro·​gram | \ ˈPrō-ˌgram , -grəm \
:A Sequence Of Coded Instructions That Can Be Inserted Into A Mechanism (Such As A Computer)

Who We Are : https://msha.ke/programmerjokesofficial
Download Telegram
Answer: a
Explanation: The unshift() and shift() methods behave much like push() and pop(), except that they insert and remove elements from the beginning of an array rather than from the end. unshift() adds an element or elements to the beginning of the array, shifts the existing array elements up to higher indexes to make room, and returns the new length of the array. shift() removes and returns the first element of the array, shifting all subsequent elements down one place to occupy the newly vacant space at the start of the array.
Comment Output
Options
Anonymous Quiz
30%
A
32%
B
34%
C
5%
D
😁1
Output:

PROGRAMMERJOKES
Explanation : In Python, AND operator has higher precedence than OR operator. So, it is evaluated first. i.e, (b and c) evaluates to false.Now OR operator is evaluated. Here, (True or False) evaluates to True. So the if condition becomes True and PROGRAMMERJOKES is printed as output.
A straightforward definition of multi-threaded functions for NodeJS and browser

https://github.com/finom/elegant-threading
Comment Output
👍1
Options
Anonymous Quiz
57%
A
11%
B
24%
C
8%
D
Answer: a
Explanation: Second print statement doesn’t have access to y , scope y was limited to the block defined after initialization of x.

output:
$ javac variable_scope.java
Exception in thread "main" java.lang.Error: Unresolved compilation problem: y cannot be resolved to a variable
👍1
Comment Output
👍1
Options
Anonymous Quiz
59%
A
20%
B
9%
C
12%
D