SASI -1st year -DAY6-AN (23.12.23)

SASI -1st year -DAY6-AN (23.12.23)

Professional Development

15 Qs

quiz-placeholder

Similar activities

VCE-GAMMA-21.11.2023-AN

VCE-GAMMA-21.11.2023-AN

Professional Development

15 Qs

13 dec 2023 SRMIST  TRC MCA    FN

13 dec 2023 SRMIST TRC MCA FN

Professional Development

15 Qs

SASI -1st year -DAY1-AN(19.12.23)

SASI -1st year -DAY1-AN(19.12.23)

Professional Development

15 Qs

14 dec 2023 SRMIST  TRC MCA    AN

14 dec 2023 SRMIST TRC MCA AN

Professional Development

15 Qs

SASI -1st year -DAY4-AN (21.12.23)

SASI -1st year -DAY4-AN (21.12.23)

Professional Development

15 Qs

TEST 8      SASI AN

TEST 8 SASI AN

Professional Development

15 Qs

SASI -BATCH 3-DAY5-AN(24.11.23)

SASI -BATCH 3-DAY5-AN(24.11.23)

Professional Development

15 Qs

28 12 23         KLU         FN  CLUSTER 5

28 12 23 KLU FN CLUSTER 5

Professional Development

15 Qs

SASI -1st year -DAY6-AN (23.12.23)

SASI -1st year -DAY6-AN (23.12.23)

Assessment

Quiz

English

Professional Development

Hard

Created by

CCC info@ccc.training

Used 1+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which function is used to concatenate two strings in C?
strcat()
concat()
strjoin()
stringconcat()

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

#include <stdio.h> int main() { char str1[] = "Hello"; char str2[] = "World"; strcat(str1, str2); printf("%s", str1); return 0; }
"HelloWorld"
"WorldHello"
"Hello"
"World"

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which library must be included to use string functions in C
<stdlib.h>
<string.h>
<math.h>
<stdio.h>

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

#include <stdio.h> int main() { char str[] = "C Language"; printf("%s", str + 2); return 0; }
Prints "Language"
Prints "C Language"
Causes a compilation error
Results in a runtime error

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

#include <stdio.h> int main() { char str[] = "Hello"; str[0] = 'J'; printf("%s", str); return 0; }
"Hello"
"Jello"
"H"
Causes a compilation error

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

#include <stdio.h> int main() { char str1[] = "Hello"; char str2[] = "Hello"; int result = strcmp(str1, str2); printf("%d", result); return 0; }
Prints 0
Prints 1
Prints -1
Causes a compilation error

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

#include <stdio.h> int main() { char str[] = "Hello"; printf("%c", str[strlen(str) - 1]); return 0; }
'o'
H'
l'
e'

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?