Programology – Telegram
Programology
7.26K 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
Output:

4321
Explanation:
Any non-zero number in C++ is treated as true value. Here in this code the if statement tends to decrease the value of i but inside the block of if, the main() function is called again and again. Here the program seems to be in infinite loop but the variable i is static in nature it has its lifetime till execution hence the program will halt if i becomes 0.
Smart 🤓 Or Lazy 🦥😂
https://openinapp.co/150f8
Comment Output
👍3
Options
Anonymous Quiz
34%
A
9%
B
47%
C
9%
D
Writing actual code isn't the first thing BUT the last thing I do. There is so much that needs to be done BEFORE the code is ever written.

Understanding the task, translating the business requirements into logic, problem solving, solution creating THEN writing out the code
👍5👏21
Comment Output
Options
Anonymous Quiz
41%
A
25%
B
16%
C
17%
D
👍1👏1
To make a tweet viral, you should tweet first.
To make a yt video popular, you should create it first.
To work a program, you should code it first.

To achieve a goal, you should start working first.

Have a good weekend.
Answer : (d)
Explanation: val1 will only have integer and floating values val1 = 1 + 1.33 + 0 = 2.33 and val2 will have string values val2 ='PJO' + 'NO' = 'PJONO'. String 'G' will not be part of val2 as the for loop will break at None, thus 'G' will not be added to val2.
Comment Output
Options
Anonymous Quiz
49%
A
10%
B
36%
C
5%
D
Answer: c
Explanation: Unary not operator, ~, inverts all of the bits of its operand. 42 in binary is 00101010 in using ~ operator on var1 and assigning it to var2 we get inverted value of 42 i:e 11010101 which is -43 in decimal.