String in C

String in C

University

10 Qs

quiz-placeholder

Similar activities

Java day 2

Java day 2

University

15 Qs

CD 10 Ch. 7-8 Quiz

CD 10 Ch. 7-8 Quiz

10th Grade - University

10 Qs

Importance of Human Touch

Importance of Human Touch

University

14 Qs

Java Strings

Java Strings

1st Grade - Professional Development

10 Qs

Compose Camp - Session 1 Quiz

Compose Camp - Session 1 Quiz

University

10 Qs

GFG Final Quiz

GFG Final Quiz

University

10 Qs

Lý thuyết về Python

Lý thuyết về Python

3rd Grade - University

10 Qs

String in C

String in C

Assessment

Quiz

Education

University

Medium

Created by

MARY T

Used 12+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A string is a ____________ character array.

Null terminated

fully terminated

listed in parenthesis

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Guess the output:

void main()

{

  char name[10]=“ECE”;

  printf(“Name is %s”,name);

}

Error

ECE

Name is ECE

warning

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of below C code?

printf(“%.5s”,name);

will print all the characters

will print the name

will print the 5 characters

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Who is father of C Language?

Bjarne Stroustrup

James A. Gosling

Dennis Ritchie

Dr. E.F. Codd

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In which of the following function compiler used to read strings with blank space?

getchar()

getche()

gets()

None of the Above

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the standard library of C programming language, which of the following header file is designed for string operations?

string.h

conio.h

dos.h

stdio.h

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Full form of ASCII code is ___________.

American Standard Code for Internet Interconnection

American Standard Code for Internet Interchange

American Standard Code for Information Interchange

American Standard Captcha for Information Interchange

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?