为减少手工输入数字代码是发生的错误,常用的手段是在数字代码上增设验位。例如,第二代身份证号共有18位,其中左17位是数字代码,尾部一位是校验位。
设i(i=1..18)表示第二代身份证从右到左的各位编号,Ai(i=2..18)表示身份证号第i位上数字,则校验位Ai上的数字可以按以下方法计算:
r=(A2W2+A3W3+…+A18W18)mod 11
其中,Wi=2(i-1次方)mod 11,A1=(12-r)mod 11
如果A1=10,则以“X”表示。
设某人的身份证号代码如下表中的Ai(i=2…18)所示:
则校验位A1=( )。

r= A2W2+A3W3+…+A18W18) mod 11 = (A18W18+A17W17+…+A2W2) mod 11=(1*7+1*9+0*10+……+0*4+2*2) mod 11=161 mod 11=7
A1=(12-r)mod 11=(12-7) mod 11=5
( )is a method or procedure for carrying out a task.
One of the major features in C++( )handling,which is a better way of handling errors.
( )of database refers to the protection of data against unauthorized disclosure, alteration,or destruction.
We consider a( )successful only when an error is discovered.
In C language,( )consists of variables and constants connected by operators.
在 Windows 系统中,通过安装( )组件来创建 FTP 站点。
在地址栏中输入www.abc.com,浏览器默认的协议是( )。
在 HTML 中,表格边框的宽度由( )属性指定。
以下 IP地址中,( )可以指定给因特网接口。
随着社会信息化程度的迅速提高,我们已经进入了大数据时代。数据量的单位也在不断扩展 :B、KB、MB、GB、TB、PB、EB、ZB 等,后者是前者的 1024 倍。因此, 1EB= ( )GB。