Q1. Which of the following have true values in Ruby? (Choose two.)
- (a)
"" - (b)
0 - (c)
false - (d)
nil
| K |
| #include<stdio.h> | |
| #include<math.h> | |
| float distance(double, double, double, double); | |
| int main(void) | |
| { | |
| //点P | |
| double latitude_s = 35.658581; | |
| double longitude_s = 139.745433; |
| float to_mw(float mjma) | |
| { | |
| float mw = mjma - 0.171 ; | |
| return mw; | |
| } |
| module EEW | |
| module Calculator | |
| include Math | |
| #PGVから求めた震度を返す。 | |
| #IINSTR =2.68+1.72log(PGV) (4<IINSTR<7) | |
| def shindo(latitude_s, longitude_s, mjma, depth, latitude_e, longitude_e) | |
| d = two_points_distance(latitude_s, longitude_s, latitude_e, longitude_e, depth) | |
| mw = mjma_to_mw(mjma) | |
| fl = falut_length(mw) |
| workflows: | |
| version: 2 | |
| build-test-and-deploy: | |
| jobs: | |
| - build | |
| - test1: | |
| requires: | |
| - build | |
| - test2: | |
| requires: |
| version: 2.0 | |
| jobs: | |
| checkout_code: | |
| docker: | |
| - image: circleci/ruby:2.4-node | |
| - image: circleci/postgres:9.4.12-alpine | |
| working_directory: ~/circleci-demo-workflows | |
| steps: | |
| - checkout |