
AN-2

Quiz
•
Computers
•
12th Grade
•
Medium
Rishabh Tomar
Used 6+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
String is an array of characters with …….. character as the last element of array.
Null
Empty
0
1
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the format specifier used to print or read a character in an array in Printf or Scanf function?
%C
%f
%w
%c
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following function is more appropriate for reading in a multi-word string?
scanf()
gets()
printf()
puts()
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
The library function used to copy a string to another is
strncpy()
strcmp()
strcpy()
strchr()
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
String is initialized with datatype
float
char
int
double
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of this program?
#include <stdio.h>
int main()
{
char str[] = "hello, world";
printf("%d", strlen(str));
}
Compilation error
10
13
12
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of this
#include <stdio.h>
#include <string.h>
int main()
{
char s1[10] = "Hello";
char s2[10] = "World";
strncat(s1,s2, 3);
printf("Concatenation using strncat: %s", s1);
return 0;
}
Concatenation using strncat: Hel
Concatenation using strncat: HelloWorld
Concatenation using strncat: HelloWor
None of the above
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
C-Programming

Quiz
•
11th - 12th Grade
18 questions
Programming in C language

Quiz
•
12th Grade - University
15 questions
Java methods

Quiz
•
9th - 12th Grade
20 questions
LOOKUP

Quiz
•
9th Grade - University
20 questions
XII CS 1-16 One Mark

Quiz
•
12th Grade
15 questions
Array

Quiz
•
10th - 12th Grade
18 questions
STATIC KEYWORD IN JAVA

Quiz
•
9th - 12th Grade
20 questions
Web Development Tutorial 10 Quiz Review

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade