• 2021-04-14 问题

    style="padding-left:0px;">class Student: name="xxx" @staticmethod def show(): name="yyy" print(name,Student.name) @staticmethod def display(): show() s=Student() s.display() 结果:

    style="padding-left:0px;">class Student: name="xxx" @staticmethod def show(): name="yyy" print(name,Student.name) @staticmethod def display(): show() s=Student() s.display() 结果:

  • 2022-06-07 问题

    下面程序的运行结果是( )。class Student:name="yyy"age=30def __init__(self):self.name="xxx"self.age=20s=Student()Student.name="zzz"print(s.name,s.age,Student.name,Student.age) A: yyy 20 zzz 30 B: xxx 20 zzz 30 C: yyy 20 xxx 30 D: xxx 20 yyy 30

    下面程序的运行结果是( )。class Student:name="yyy"age=30def __init__(self):self.name="xxx"self.age=20s=Student()Student.name="zzz"print(s.name,s.age,Student.name,Student.age) A: yyy 20 zzz 30 B: xxx 20 zzz 30 C: yyy 20 xxx 30 D: xxx 20 yyy 30

  • 2022-05-29 问题

    Student类中存在String类型name属性,下列Student类的构造方法中,哪个是正确的? A: Student(String name){} B: Student(String name) C: Student(name)() D: NewStudent (String name){}

    Student类中存在String类型name属性,下列Student类的构造方法中,哪个是正确的? A: Student(String name){} B: Student(String name) C: Student(name)() D: NewStudent (String name){}

  • 2022-06-07 问题

    以下代码中,实例方法定义正确的是() A: class Student: def setName(self,name): self.name=name B: class Student: def setName(name): self.name=name C: class Student: def setName(self): self.name=name D: class Student: def setName(name,self): self.name=name

    以下代码中,实例方法定义正确的是() A: class Student: def setName(self,name): self.name=name B: class Student: def setName(name): self.name=name C: class Student: def setName(self): self.name=name D: class Student: def setName(name,self): self.name=name

  • 2022-10-26 问题

    表student中的包含两个字段,整型的id,字符串型的name。只显示表student中name列记录的SQL语句正确的是() A: select name from student B: select * from student C: select from name in student D: select name

    表student中的包含两个字段,整型的id,字符串型的name。只显示表student中name列记录的SQL语句正确的是() A: select name from student B: select * from student C: select from name in student D: select name

  • 2022-06-16 问题

    下面哪一个是JSON数据?() A: {name:"xiaoming",age,"student"} B: {"name":"xiaoming","age":"student"} C: {"xiaoming","student"} D: ["xiaoming","student"]

    下面哪一个是JSON数据?() A: {name:"xiaoming",age,"student"} B: {"name":"xiaoming","age":"student"} C: {"xiaoming","student"} D: ["xiaoming","student"]

  • 2022-10-26 问题

    若想查询student表中name为空值的记录,则正确的SQL语句是( )。 A: SELECT * FROM student WHERE name = NULL; B: SELECT * FROM student WHERE name like NULL; C: SELECT * FROM student WHERE name = 'NULL'; D: SELECT * FROM student WHERE name is NULL;

    若想查询student表中name为空值的记录,则正确的SQL语句是( )。 A: SELECT * FROM student WHERE name = NULL; B: SELECT * FROM student WHERE name like NULL; C: SELECT * FROM student WHERE name = 'NULL'; D: SELECT * FROM student WHERE name is NULL;

  • 2022-06-08 问题

    若想查询student表中name为空值的记录,则正确的SQL语句是(1.0分) A: select * from student where name = null; B: select * from student where name link null; C: select * from student where name = 'null'; D: select * from student where name is null;

    若想查询student表中name为空值的记录,则正确的SQL语句是(1.0分) A: select * from student where name = null; B: select * from student where name link null; C: select * from student where name = 'null'; D: select * from student where name is null;

  • 2022-07-23 问题

    以下变量定义,错误的是: A: struct student{int num, char name[20];} s; B: struct {int num, char name[20];} s; C: struct student{int num, char name[20];}; struct student s; D: struct student{int num, char name[20];} ; student s

    以下变量定义,错误的是: A: struct student{int num, char name[20];} s; B: struct {int num, char name[20];} s; C: struct student{int num, char name[20];}; struct student s; D: struct student{int num, char name[20];} ; student s

  • 2022-06-09 问题

    下列声明结构体变量错误的是( ) A: A.struct student  { int no; char name[16]; }st1,st2; B: B. struct student{ int no;char name[16];};struct student st1,st2; C: C.struct student { int no; char name[16]; }; struct st1,st2; D: D.struct student{ int no;char name[16]; };student st1,st2;

    下列声明结构体变量错误的是( ) A: A.struct student  { int no; char name[16]; }st1,st2; B: B. struct student{ int no;char name[16];};struct student st1,st2; C: C.struct student { int no; char name[16]; }; struct st1,st2; D: D.struct student{ int no;char name[16]; };student st1,st2;

  • 1 2 3 4 5 6 7 8 9 10