The answer is C to this question
Answer:
The programming code can be found in the explanation part, please go through it.
Explanation:
Code:
#include<stdio.h>
#include<stdlib.h>
#include <pthread.h>
// function check whether a number
// is prime or not
int isPrime(int n)
{
// Corner case
if (n <= 1)
return 0;
// Check from 2 to n-1
for (int i = 2; i < n; i++)
if (n % i == 0)
return 0;
return 1;
}
void* printPrimes(void *vargp)
{
int *n = (int *)vargp;
int i=0;
for (i=2;i<=n;i++)
{
if (isPrime(i)) printf("%d\n", i);
}
}
// Driver Program
int main(int argc, char* argv[])
{
int n = atoi(argv[1]);
pthread_t tid;
pthread_create(&tid, NULL, printPrimes, (void *)n);
pthread_exit(NULL);
return 0;
}
Answer:
D. Ionic framework
Explanation:
Out of all mentioned above, the best for developing the progressive app is certainly the Ionic. This is because it is an open-source, hybrid mobile app, cross-platform, and comes with the services and tools that are required for developing the app using web technologies like HTML5, Sass, and CSS. And Ionic happens to be the cheapest of all the framework mentioned above. Hence, it is the correct option. You can load your app on almost all the major app stores, and this is the biggest advantage with Ionic.