Types and keyboard input

  • 3
  • 未開放
Types and keyboard input

3
問卷/小測驗
Types and keyboard input,等級 3,課堂 9
未開放
Types and keyboard input
Types and keyboard input
留言 (19)
  • 受歡迎
你必須登入才能留言
delta
等級 4 ,Ethiopia
1 八月 2023, 07:36
the question 5/2 didn't specify what type of variable they are. if both are double 2.5 is an answer . if both are int 2 is the answer.
Timurlan
等級 3 ,Russian Federation
26 七月 2023, 14:46
I didn't get that int can store 2.... if include negative digits there are 4....
rags 3
等級 7 ,Wichita,United States
11 六月 2023, 18:56
they actually taught it all but not direct its critical thinking like int don't do fractions its all there just not in plain text in my opinion
Farcalito
等級 3 ,Pakistan
26 十二月 2022, 04:58
they didnt even teach some of these questions in previous lessons
Anonymous #11208858
等級 3 ,CodeGym University in India,India
8 十二月 2022, 04:23
I thought it was scanner.BufferedReader ?
ghost
等級 5 ,Jakarta,India
27 十月 2022, 19:18
In Java, you can get the length of the string "hello" with this statement: ??
Manh-Nam Nguyen
等級 4 ,Hanoi,Viet Nam
30 五月 2023, 07:42
"hello".length()
Jelly bean
等級 3 ,Jakarta,India
27 九月 2022, 18:32
i doubt this 5/2 gives 2.5 or does it, is it 2 or something
Bassy Boosty Extremy
等級 3 ,Thailand
8 二月 2023, 08:06
5/2 gives 2, java and C+ things
Maksim Krasnov
等級 47 ,Kyiv,Ukraine
12 六月 2022, 20:24
5/2 = 2 // 2 fits twice in 5 5%2 = 1 // remainder - whole number after division 5 = 2*2 + 1 -------------- 2/5 = 0 // 5 fits zero times in 2 2%5 = 2 // remainder - whole number after division 2 = 0 +2
Tönnes
等級 3 ,United States
5 六月 2022, 05:53
5%2 question is either bugged or I'm seriously misunderstanding what a modulo does when I get the answer 5 :D If 2 were the right answer it should be 2%5, no? :D
Niranjan Balaguru
等級 3 ,India
22 六月 2023, 22:10
No, it would be like remainder that we get by dividing 2 by 5 which is actually 4 and not 2!
Anonymous #10882853
等級 8 ,France,France
27 十二月 2021, 19:43
very nice java in the dance floor