2022 高二下半年小测验1 String.h & Function

2022 高二下半年小测验1 String.h & Function

12th Grade

10 Qs

quiz-placeholder

Similar activities

一年级科学 - 人类

一年级科学 - 人类

1st - 12th Grade

10 Qs

CAHAYA, WARNA DAN PENGLIHATAN

CAHAYA, WARNA DAN PENGLIHATAN

12th Grade

10 Qs

АЛГОРИТМІЗАЦІЯ 7 КЛ частина 1

АЛГОРИТМІЗАЦІЯ 7 КЛ частина 1

12th Grade

12 Qs

二年级 科学

二年级 科学

1st - 12th Grade

10 Qs

Family Quizz

Family Quizz

5th Grade - Professional Development

15 Qs

Цикли з лічильником. Цикли з передумовою

Цикли з лічильником. Цикли з передумовою

1st - 12th Grade

11 Qs

聖經班_day 3

聖經班_day 3

1st - 12th Grade

10 Qs

Mikropemproses dan Mikropengawal

Mikropemproses dan Mikropengawal

12th Grade - University

15 Qs

2022 高二下半年小测验1 String.h & Function

2022 高二下半年小测验1 String.h & Function

Assessment

Quiz

Computers, Science

12th Grade

Practice Problem

Medium

Created by

C Programming undefined

Used 46+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

下列何种宣告变数的方法是错误的

#include <stdio.h>

int i[2][3];

char y[6];

string g[5];

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

下列何者关于“输入字串”是错误的

scanf("%s",str);

gets("str");

scanf("%[^\n]s",str);

scanf("%[^!]s",str);

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

string.h中,最适合用来比较2字串内容是否相同的function是?

mystrcmp(str1,str2)

strlen(str1,str2)

strcmp(str1,str2)

strcpy(str1,str2)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

下列何者关于strcpy(str1,str2)的叙述正确

将str1的内容复制到str2中

将str2的内容复制到str1中

将str2的内容复制到str1中,再把str2内容删除

将str1和str2的内容比较是否相同,相同则return 0

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

下列何者叙述错误

void类型的function不需要return任何资料给主程式

int类型的function通常会return一个整数值到主程式

function可以return string字串

function可以return char字元

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

自行设计可以计算字串长度的function,蓝色长方形内应怎么写

x=0;mystr[x]!='\0';x++

length=0;str[x]!='\0';length++

x=0;mystr1[x]!='\0';x++

x=0;str1[x]!='\0';x++

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

自行设计计算次方的function,蓝色长方形内应填入什么?

a;a<=y;a++

a=0;a<=y;a++

a;y<=a;a++

y;a<=y;y++

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?