کداکسپلور | CodeExplore
7.92K subscribers
2.03K photos
363 videos
120 files
1.88K links
با کد اکسپلور یاد بگیر، لذت ببر و بروز باش ⚡️😉

سایت:
CodeExplore.ir
👨🏻‍💻 ارتباط با ما :
@CodeExploreSup
گروه :
@CodeExplore_Gap
تبلیغات در کد اکسپلور :
@CodeExploreAds
Download Telegram
خروجی این کد چیه؟⌨️
a = [1, 2, 3]
b = a
a = [4, 5, 6]
b[0] = 9

print(b)

#quiz #python
☕️@CodeExplore
Please open Telegram to view this post
VIEW IN TELEGRAM
6❤‍🔥3🔥2
خروجی این کد چیه؟ ✌️
console.log(1 + "2" + "2");
console.log(1 + +"2" + "2");
console.log(1 + -"1" + "2");
console.log(+"1" + "1" + "2");
console.log("A" - "B" + "2");
console.log("A" - "B" + 2);

#js #javascript #quiz
☕️ @CodeExplore
Please open Telegram to view this post
VIEW IN TELEGRAM
8❤‍🔥2🔥2
کد زیر چه مقداری را بر میگرداند؟
def add_to(num, target=[]):
target.append(num)
return target

result1 = add_to(1)
result2 = add_to(2, [])
result3 = add_to(3)
result4 = add_to(4, result1)

print(result4)

#quiz #python
☕️ @CodeExplore
Please open Telegram to view this post
VIEW IN TELEGRAM
🔥9❤‍🔥22
خروجی این کد چیه؟
x = 10

def outer():
x = 5
def inner():
nonlocal x
x = 20
inner()
return x

print(outer())

#quiz #python
@CodeExplore
خروجی این کد چیه؟
L = [3, 1, 2, 4] 
T = (\'A\', \'b\', \'c\', \'d\')
L.sort()
counter = 0
for x in T:
L[counter] += int(x)
counter += 1
break
print(L)

#python #quiz
☕️ @CodeExplore
Please open Telegram to view this post
VIEW IN TELEGRAM
8🔥2❤‍🔥1
خروجی این کد چیه؟
def mystery(x):
return lambda y: x + y

f1 = mystery(5)
f2 = mystery(10)

result = f1(f2(3))
print(result)

#python #quiz
☕️ @CodeExplore
Please open Telegram to view this post
VIEW IN TELEGRAM
❤‍🔥74🔥1
نتیجه اجرای این کد کدوم گزینه هست؟

(function() {
var a = b = 5;
})();

console.log(typeof a);
console.log(typeof b);

#javascript #js #quiz
☕️ @CodeExplore
Please open Telegram to view this post
VIEW IN TELEGRAM
6
خروجی کد پایین چیه؟
def func(val, lst=[]):
lst.append(val)
return lst

print(func(1))
print(func(2))
print(func(3))


#quiz #python
☕️@CodeExplore
Please open Telegram to view this post
VIEW IN TELEGRAM
❤‍🔥9🔥32
خروجی این کد چیه؟
def mystery_func(n):
if n == 0:
return 0
if n % 2 == 0:
return mystery_func(n // 2)
else:
return 1 + mystery_func(n // 2)

print(mystery_func(13))

#python #quiz
@CodeExplore
🔥64❤‍🔥1
خروجی این کد چیه؟
(function() {
var a = b = 5;
})();

console.log(b);

#js #javascript #quiz
☕️ @CodeExplore
Please open Telegram to view this post
VIEW IN TELEGRAM
7💔3❤‍🔥1🔥1
خروجی این کد پایتون کدوم گزینست؟🤔

a = [1, 2, 3]
print(a[3:])

A) 123
B) 3
C) [ ]
D) Error

#quiz #python
☕️Telegram | Website | Discord
❤‍🔥8🔥2
جاوا اسکریپت کارا بیان
خروجی این کد جاوا اسکریپت کدوم گزینست؟🤔

const numbers = [33, 2, 8];
numbers.sort();
console.log(numbers[1])

A) 33
B) 2
C) 8
D) 1

#quiz #js
☕️Telegram | Website | Discord
❤‍🔥5🔥3
خروجی این کد پایتون کدوم گزینست؟🤔

d = 12 

def func():
d = 88

func()
print(d)


A) 88
B) 5
C) 12
D) Error

#quiz #python
☕️Telegram | Website | Discord
❤‍🔥2🔥1
خروجی این کد پایتون کدوم گزینست؟🤔
m = False
n = True
final = m + 1 + n
print(final)


A) True
B) False
C) 1
D) 2

#quiz #python
☕️Telegram | Website | Discord
🔥61
خروجی این کد چیه؟
x = 10

def outer():
x = 5
def inner():
nonlocal x
x = 20
inner()
return x

print(outer())



#quiz #python
☕️Telegram | Website | Discord
🔥42❤‍🔥1
خروجی این کد پایتون کدوم گزینست؟🤔
a = int("20", 4)
print(a)


#quiz #python
☕️Telegram | Website | Discord
❤‍🔥9🔥2
خروجی این کد سی شارپ کدوم گزینست؟🧐
string a = "hi";
string b = new string("hi".ToCharArray());
Console.WriteLine(object.ReferenceEquals(a, b));


#quiz #csharp
☕️Telegram | Website | Discord
🔥4😍3
خروجی این کد Rust کدوم گزینست؟🧐
fn main() {
let mut v = vec![1, 2, 3];
for i in &v {
v.push(*i);
}
println!("{:?}", v);
}


#quiz #rust
☕️Telegram | Website | Discord
❤‍🔥3🔥1😍1