单选题What is the name of the User Interface (UI) widget that is just a standard edit box that is linked to a calendar with the pop-up property set?()A Date-Time PickerB Calendar PickerC Date PickerD Date Selector

题目
单选题
What is the name of the User Interface (UI) widget that is just a standard edit box that is linked to a calendar with the pop-up property set?()
A

Date-Time Picker

B

Calendar Picker

C

Date Picker

D

Date Selector

如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

Where is the run date for an ‘at’ job located?()

A.Within the job environment set up

B.Within the user data of the at job

C.In the file name preceeded with a userid

D.In a special file used by the cron daemon


参考答案:A

第2题:

下列关于Date类的描述中,错误的是?()

A、Date类获取的时间是以1970秒开始计时的

B、在JDK1.1之后,Date类逐渐被Calendar类取代

C、Date类中大部分构造方法都被声明为已过时

D、Date类中大部分方法依然推荐使用


正确答案:D

第3题:

在下面附属类方法中的下划线处应填入的正确参数是 public void writeData(______)throws IOException{ GregorianCalendar calendar=new GregorianCalendar(); calendar.setTime(hireDay); out.println(name+"|"+salary+"|" +calendar.get(Calendar.YEAR)+"|" +(calendar.get(Calendar.MQNTH)+1)+"|" +calendar.get(Calendar.DAY_OF_MONTH)); }

A.Employee[]e

B.employee.dat

C.PrintWriter out

D.BufferedWriter


正确答案:C
解析:本题考查考生对附属类的掌握。题目看起来很难,其实不用去理解程序即可回答,按照Java中的语法规则,只有选项C满足题目。在题目中出现了"out"变量,只有选项C中"PrintWriter out"有该变量。选项A只是用来定义一个数组,选项B是一个常量,不能用在这里,选项D中"BufferedWriter"后缺少参数。这个题目考点有些含糊,容易让考生莫名其妙,如果将程序整个给出也许更好一些,了解即可,本题的关键是明白附属类的概念。

第4题:

Date、Calendar以及DateFormat类都位于java.util包中


正确答案:错误

第5题:

At which command prompt would you issue the set date command?()

  • A、[edit chassis]   user@router#
  • B、[edit]   user@router#
  • C、[edit system]   user@router#
  • D、user@router>

正确答案:D

第6题:

Calendar类中,用于为指定的日历字段增加或减去指定的时间量的方法是?()

A.int get(int field)

B.void add(int field,int amount)

C.void set(int field,int value)

D.void set(int year,int month,int date)


答案:B

第7题:

用户随便输入一个日期(yyyy-MM-dd), 打印出这个日期所在月的每一天, 格式如下:

日 一 二 三 四 五 六

1 2 3 4 5 6

提示:

(1) 字符串 -->util.Date

(2) Date -->Calendar

(3) 修改日期 -->set

(4) 记录用户输入的是哪一天 -->get

(5) 判断星期几 -->get

(6) 获取该月份的最大天数 -->calendar.getActualMaximum

(7) 日期自增 -->add


答案:
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;
import java.util.Scanner;
public class TestCalendar {
//public class test{
public static void main(String[] args) {
//创建扫描器
Scanner sc = new Scanner(System.in);
while (true){
//提示用户输入
System.out.println("请输入一个日期,格式为:2018-12-05,输入exit退出");
//接受用户输入
String temp = sc.nextLine();
if(temp.equalsIgnoreCase("exit")){//判断两个字符串是否相等忽略大小写
System.out.println("ByeBye");
break;
}
//创建日期格式化对象
//DateFormat日期格式化类
DateFormat format = new SimpleDateFormat("yyyy-MM-dd");
try {
//string --> date
Date date = format.parse(temp);//此处需添加异常
//date --> Calendar
//创建日历对象
Calendar calendar = new GregorianCalendar();
//设置日期为用户输入日期
calendar.setTime(date);
//打印日历抬头
System.out.println("日\t一\t二\t三\t四\t五\t六");
//记录用户输入的日
int currentDate = calendar.get(Calendar.DATE);
//修改日期为此月的第一天
calendar.set(Calendar.DAY_OF_MONTH,1);
//获取第一天是星期几
int week = calendar.get(Calendar.DAY_OF_WEEK);//1-7
//打印缩进
for (int i = 1; i < week; i++) {
System.out.print("\t");
}
//获取当月的最大天数
int maxDate=calendar.getActualMaximum(calendar.DATE);
//循环打印天数
for (int i = 1; i <= maxDate; i++) {
//如果是当天,打印一个*
if(calendar.get(Calendar.DATE) == currentDate){
System.out.print("*");
}
//打印该天
System.out.print(i+"\t");
//如果是周六,打印换行
if(calendar.get(Calendar.DAY_OF_WEEK) == Calendar.SATURDAY) {
System.out.println();
}
//天数加一
calendar.add(Calendar.DATE,1);
}}
catch (ParseException e) {
e.printStackTrace();
}
System.out.println();
}
}
}

第8题:

在下面附属类方法中的下划线处应填入的正确参数是( )。 public void writeData( ______ ) throws IOException{ GregorianCalendar calendar=new GregorianCalendar(); calendar.setTime(hireDay); out.println(name+"|"+salary+"|" +calendar.get(Calendar.YEAR)+"I" +(calendar.get(Calendar.MONTH)+1)+"|" +calendar.get(Calendar.DAY_OF_MONTH)); }

A.Employee[]e

B.employee.dat

C.PrintWriter out

D.BufferedWriter


正确答案:C
解析:本题考查考生对附属类的掌握。题目看起来很难,其实不用去理解程序即可回答,按照Java中的语法规则,只有选项C满足题目。在题目中出现了“out”变量,只有选项C中“PrintWriter out”有该变量。选项A只是用来定义一个数组,选项B是一个常量,不能用在这里,选项D中“BufferedWriter”后缺少参数。这个题目考点有些含糊,容易让考生莫名其妙,如果将程序整个给出也许更好一些,了解即可,本题的关键是明白附属类的概念。

第9题:

You create a Web Form that contains a text box named txtDate. You want the text box to allow users to enter any valid date. You need to use an ASP.NET validation control to ensure that only valid date values are submitted to the server. What should you do? ()

  • A、Add a CompareValidator control to the Web Form. Set its ControlToValidate property to txtDate. Set its Type property to Date. Set its Operator property to DataTypeCheck.
  • B、Add a RangeValidator control to the Web Form. Set its ControlToValidate property to txtDate. Set its Type property to Date. Set its MinimumValue property to 01/01/1900 and its MaximumValue to the current date.
  • C、Add a CustomValidator control to the Web Form. Set its ControlToValidate property to txtDate. Write a function in the partial class that verifies the values as dates and returns a Boolean variable. Set the CustomValidators ClientValidationFunction to the name of your function.
  • D、Add a RegularExpressionValidator control to the Web Form. Set its ControlToValidate property to txtDate. Set the ValidationExpression property to ensure that the users input follows the format of nn-nn-nnnn, where n represents a number from 0 through 9.

正确答案:A

第10题:

What is the name of the User Interface (UI) widget that is just a standard edit box that is linked to a calendar with the pop-up property set?()

  • A、Date-Time Picker
  • B、Calendar Picker
  • C、Date Picker
  • D、Date Selector

正确答案:A

更多相关问题