Skip to content

Instantly share code, notes, and snippets.

View vd89's full-sized avatar
🤓
Working from home

Dixit Vora vd89

🤓
Working from home
View GitHub Profile
@vd89
vd89 / webdev_online_resources.md
Created August 8, 2018 18:27 — forked from bradtraversy/webdev_online_resources.md
Online Resources For Web Developers (No Downloading)
@vd89
vd89 / gist:83b19e60c61c408c97a84455eeb19578
Last active March 20, 2020 07:12
The Number System from BootCamp
Question and answer for the problem set
1. What is the Decimal equivalent of (​11110000101010101​)2
Ans. 1 * 2^16 = 65536
1 * 2^15 = 32768
1 * 2^14 = 16384
1 * 2^13 = 8192
0 * 2^12 = 0
0 * 2^11 = 0
@vd89
vd89 / Question 7 - 20
Last active March 23, 2020 05:48
The Number System
7. What is the ​ largest positive number​ one can represent in
a ​ 12-bit 2's complement​ code? Write your result in binary
and decimal?
Ans:
Largest 12-bit binary positive = 0111 1111 1111
In Decimal = (1+2+4+8+16+32+64+128+256+512+1024+0) = 2047 = 2^11 -1
@vd89
vd89 / Question 23 - 30
Created March 20, 2020 11:04
The Number System
23. The decimal expansion of ​ 11/17 is 0.647.​ Find the binary expansion​ of the fraction ​ 11/17.
Ans.
11/17 = 0.647
1011 = (11)10
10001 = (17)10
10001 )10110 ( 0.101001011
10001
31. Why are we running out of IPv4 Addresses?
Ans:
it is due to the community's responsible stewardship of these resources that we have been able to provide many thousands of new networks in our service region with /22 allocations after we reached our last /8 in 2012.
32. Can a device have both IPv4 and IPv6 address simultaneously?
Ans:
Yes, they can have both the IPv4 and IPv6
@vd89
vd89 / Question 1 - 20
Created March 31, 2020 06:11
Linux Question and Answer Assignment
Section 1
1. Expand Bash.
Ans:
bash is an sh-compatible command language interpreter that executes commands read from the standard input or from a file. bash also incorporates useful features from the Korn and C shells (ksh and csh).
bash is intended to be a conformant implementation of the Shell and Utilities portion of the IEEE POSIX specification (IEEE Standard 1003.1). bash can be
configured to be POSIX-conformant by default.