This can be achieved with Multiple Taxonomy Handling. Try this code.
<?php
$args = array(
'post_type' => 'note',
'tax_query' => array(
array(
'taxonomy' => 'category',
'terms' => array( 'class 11', 'chemistry' ), // Add suitable term slugs here
'field' => 'slug'
)
)
);
$my_query = new WP_Query( $args );
if( $my_query->have_posts() ) {
while ($my_query->have_posts()) : $my_query->the_post(); ?>
<p><a href="https://wordpress.stackexchange.com/questions/204461/<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></p><?php
endwhile;
}
wp_reset_query();
?>