TEST 8      SASI AN

TEST 8 SASI AN

Professional Development

15 Qs

quiz-placeholder

Similar activities

SASI -BATCH 3-DAY6-FN(25.11.23)

SASI -BATCH 3-DAY6-FN(25.11.23)

Professional Development

15 Qs

International Cuisine

International Cuisine

Professional Development

12 Qs

Spring'24 Trends & Looks

Spring'24 Trends & Looks

Professional Development

10 Qs

Grade 12_Unit 1_Warm up_Famous people

Grade 12_Unit 1_Warm up_Famous people

10th Grade - Professional Development

12 Qs

Race & Ethnicity

Race & Ethnicity

Professional Development

10 Qs

Gamma-AN-01.05.2024

Gamma-AN-01.05.2024

Professional Development

15 Qs

PI SO CH3 Arts Vocab

PI SO CH3 Arts Vocab

Professional Development

11 Qs

SRM RMP-MCA -20.01.2024-AN

SRM RMP-MCA -20.01.2024-AN

Professional Development

15 Qs

TEST 8      SASI AN

TEST 8 SASI AN

Assessment

Quiz

English

Professional Development

Practice Problem

Hard

Created by

CCC info@ccc.training

FREE Resource

AI

Enhance your content in a minute

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

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'

Access all questions and much more by creating a free account

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

Already have an account?